about | help | code help+videos | done | prefs |
mergeSortBasic
Given two sorted input arrays of the same length, return an array which is the sorted combination of the two input arrays. The new array should be twice the length of the originals. mergeSortBasic([1, 3], [2, 4]) → [1, 2, 3, 4] mergeSortBasic([2, 5, 7], [3, 5, 6]) → [2, 3, 5, 5, 6, 7] mergeSortBasic([1, 2, 3], [4, 5, 6]) → [1, 2, 3, 4, 5, 6] ...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: 100
Copyright Nick Parlante 2017 - privacy