about | help | code help+videos | done | prefs |
mergeSortInts
Given an unsorted array of integers, implement a merge sort algorithm to return the original array with its elements arranged in ascending order. mergeSortInts([9, 7, 5, 3, 1]) → [1, 3, 5, 7, 9] mergeSortInts([1, 2, 3, 4, 5]) → [1, 2, 3, 4, 5] mergeSortInts([11, 4, 67, 12, 14]) → [4, 11, 12, 14, 67] ...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