Insertion Sort - Part 2

  • + 0 comments

    You need to save array[i], since the while loop will be overwriting it.

    HackerRank solutions.