Given an array of 2n elements of the form {a1, a2, ..., an, b1, b2, ..., bn}, rearrange the array to interleave the elements as {a1, b1, a2, b2, ..., an, bn}.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.