โ† Amazon questions

Randomize song playlist

Filed under Amazon

Given a playlist of songs, implement a shuffling mechanism that randomizes the list and ensures every song is played exactly once before any song is repeated.

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.