Insertion sort prob


this one is also giving wrong output

hello @soumyabhardwaj75

check now->

Oh was it the only mistake? We have to run loop from 1 till n but in video bhaiya has taught us to run the loop from 1 till n-1

we hae to run till n-1 only .

thats is why we are using i<n whcin is same as i<=n-1

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.