Insertion Sort - Part 2

  • + 5 comments

    For those trying this in javaScript, remember that the input is an array of strings.

    You need to map the elements to integers using:

    arr.map(function(x) { return parseInt(x, 10); });