about | help | code help+videos | done | prefs |
merge
Define a function that when passed two arrays, each sorted in ascending order, returns an array that merges the two arrays in an overall ascending order.
merge([10, 70, 90], [20]) → [10, 20, 70, 90] merge([], [1, 2, 3, 4, 5, 6]) → [1, 2, 3, 4, 5, 6] merge([1, 2, 3, 4, 5, 6, 7, 8], []) → [1, 2, 3, 4, 5, 6, 7, 8] ...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: 4 Post-solution available
Copyright Nick Parlante 2017 - privacy