if our smallest element is present at last index how we will consider that as we are traversing from j to n-1 only.
Traversing from j to n-1
hi @yamangoyal100_ff74db54bdf01539,
hi there are two for loops i is running from 0 it will take care of it
do a dry run on paper u will get it
thank you sir , i just did that and it got cleared.
1 Like
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.