why bhaiya take j=i ?
why not j = i + 1 ; j < n ?
2nd for_loop doubt
Hello @Shantanu07j,
j=i+1 will also give the correct output as the initial min_index before the second loop is i itself.
In j=i, an extra unnecessary iteration would be there.
But, that won’t affect the answer.
Hope, this would help.
but my code not work properly
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.