← Amazon questions
CodingReported in a candidate post, Jul 2025

Even numbers at even indices, odd at odd indices

Filed under Amazon

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.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.