| about | help | code help+videos | done | prefs | 
insertionSortInts
Given an unsorted array of integers, implement an insertion sort algorithm to return the original array with its elements arranged in descending order. insertionSortInts([1, 3, 5, 7, 9]) → [9, 7, 5, 3, 1] insertionSortInts([1, 5, 4, 2, 3]) → [5, 4, 3, 2, 1] insertionSortInts([11, 4, 67, 12, 14]) → [67, 14, 12, 11, 4] ...Save, Compile, Run (ctrl-enter)  | 
Progress graphs: 
 Your progress graph for this problem
 Random user progress graph for this problem 
 Random Epic Progress Graph
Difficulty: 250
Copyright Nick Parlante 2017 - privacy