Given 2 arrays [1,2] and [7,8] what is the most efficient way of merging that to form [[1,7], [2,8]]. I know we can do this:
a1 = [1,2], a2 = [7,8], a3=[]; f
There is no way to do this faster than O(n) because every element must be touched once.