Insertion sort unclear

In this counter has to be start from 1 not from 2,3, or4 cause we are making series sort before the next counter arrives am I thinking right? Cause mam told that the series get sort to the counter index but if start counter from 3 then I expect series to be sort till this but it’s not so we have to start counter from 1 right?

@deepanshu_123,

insertion sort as the name suggests we just inserting that element to its correct position
so we are taking a key element i’th element
and out task is to insert it to its correct position
so we are traversing (loop) to i-1 to 0 side and if we found any element which is greater than the key element
we place it to its next position

jaise hi loop break hoga means
issse ho peeche hain sab isse chote hain
so just the key element to that position

thank u so much sir ur explanation is excellent :pray::pray::pray:

Thank u so much sir ur explanation is excellent :pray::pray: