Insertion sort code by class teacher

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