Quant Memo
Coding/●●●●●

Merge two sorted quote streams

Two feeds each deliver quote prices already sorted ascending. Merge them into a single sorted array without re-sorting from scratch.

a = [1, 4, 7], b = [2, 3, 8]
-> [1, 2, 3, 4, 7, 8]

Return the merged sorted array. Aim for O(m+n)O(m + n).

Your answer

This one is open-ended. Work it through, then check your reasoning against the full solution.

More Coding questions