I donot understand the logic..plz explain

I donot understand the logic…plz explain…

@garganshul151 basically hm insertion me kya krte hai ki pehle array ke element ko sorted man lete hai mtlb starting me ek sorted array hai jisme ek element hai jo ki pehla element hai fir hm barii bari rest sare elements ko traverse krte hai and us element ko uske sahi position me isorted way me insert krte hai in sorted array ye tab tk krte hai jab tk last tk nhi pahunch jate. 2m ✓
eg 3 5 6 1 to isme hm 3 ko starting me sorted man lenge than 5 par ayenge 5 ko hme insert krna hai to 3 ke bad ayega 5 to hmara sorted array 3 5 hogya and unsorted 6 1,now ab hme 6 ko insert krna hai to 6 bhi 5 ke bad ayega now sorted array 3 5 6 ho gya and unsorted 1 ,now 1 ko insert krna hai 1 6 se chota hai 5 se bhi 3 se bhi so 1 start me insert hoga and ans will bee 1 3 5 6.
Hope you understand:)

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.