Given a queue of even length, rearrange its elements such that the first half and the second half are interleaved (e.g., 1,2,3,4,5,6 becomes 1,4,2,5,3,6).
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.