Most-Frequent Unplayed Song Streaming Player

Asked at Amazon · Coding Questions · Difficulty: Medium · Last asked Feb 22, 2026

Build a streaming music player that keeps receiving batches of song plays and, on request, hands out the most popular song that has not yet been played in the current round. Once every known song has been played, a new round starts.

Loading the problem…