how int j is used in code
Insertion sort code by class teacher
Hey @lovepreet_singh
I haven’t understood ur question please elaborate
j is used to traverse in the sorted piece of the array to add the ith element at right position
how int j is used in code
Hey @lovepreet_singh
I haven’t understood ur question please elaborate
j is used to traverse in the sorted piece of the array to add the ith element at right position