← Amazon questions

Rearrange array elements

Filed under Amazon · Also reported at General Electric, ITC InfoTech

Given an array of integers, swap elements at odd positions with elements at even positions (e.g., index 0 with 1, 2 with 3).

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.