merge
Objective(s): Practice manipulating elements of an array in the context of a loop.
Complete the merge
method which takes two sorted arrays and merges them together into a sorted bigger list.
Example Pseudo Run
merge({1, 5, 7}, {2, 4, 8}) -> {1, 2, 4, 5, 7, 8}
merge({1, 5, 7}, {1, 4, 8}) -> {1, 1, 4, 5, 7, 8}
merge({1, 5, 7}, {2}) -> {1, 2, 5, 7}
merge({6}, {2, 5, 8}) -> {2, 5, 6, 8}
Type your solution
Skills Practiced:
3.C
3.D
4.A
4.B
Saved
Saved