Insertion Sort - Part 1

  • + 26 comments

    The test case 2 is failing.Not sure what's the issue.Below is the output.Did anyone face the same issue.

    2 3 4 5 6 7 8 9 10 10

    2 3 4 5 6 7 8 9 9 10

    2 3 4 5 6 7 8 8 9 10

    2 3 4 5 6 7 7 8 9 10

    2 3 4 5 6 6 7 8 9 10

    2 3 4 5 5 6 7 8 9 10

    2 3 4 4 5 6 7 8 9 10

    2 3 3 4 5 6 7 8 9 10

    2 2 3 4 5 6 7 8 9 10

    1 2 3 4 5 6 7 8 9 10