← Amazon questions

Rearrange cars into designated parking spots using minimum swaps

Filed under Amazon

Given 7 distinct cars and 8 parking spots with one empty spot, rearrange improperly parked cars into their target spots using the minimum number of moves into the empty spot.

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.