Amazon interview question

To write code for: Sorted Merge of 2 arrays.

Interview Answer

Anonymous

30 Aug 2015

Iterate over each array, comparing each element, adding the smallest to resulting array, followed by incrementing the counter on the specific array the smaller element came from.