← Amazon questions

Design a Music Player

Filed under Amazon · Also reported at Citrix

The question

Design a music player that plays songs in random order without repeat, with O(n) time and O(1) space.

No write-up yet. Related questions below have one.

Related Amazon questions

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