Students, please be sure to log in. This site does not use cookies and does not track/store work submitted when not signed in.
Unit 6 Problems
Java Reference Sheet
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}