← Questions
Music player that plays the most frequent unplayed song
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Users keep arriving, each with a list of songs, and every song's count goes up each time it appears. The player must always play the most frequent song that has not been played yet; a played song can only come back once every song has been played. Design the structure that supports adding users and choosing the next song efficiently.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
