Merge Two Sorted Arrays
Merge two arrays that are already sorted in non-decreasing order into one sorted array — in using two pointers.
Input
and the first array, then and the second array.
Output
The merged array.
Constraints
Sample 1
Input
3 1 3 5 4 2 3 4 10
Output
1 2 3 3 4 5 10