Rearrange an integer array so that even numbers sit at even indices and odd numbers at odd indices. Assumed here: the array has equal numbers of even and odd values (as in the classic problem), and…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.