Search
⌘K

Most Played Songs

Create a playlist of the most frequently played songs for a user based on the play count.

Asked at:

Amazon

Amazon

Spotify


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early September, 2025

Amazon

Amazon

Mid-level

Early September, 2025

Spotify

Mid-level

Mid June, 2025

Amazon

Amazon

Mid-level

Write a class that takes in updates to a list of its elements and can output at any given time the top k elements in it (in terms of count).

Comments

Your account is free and you can post anonymously if you choose.