← Amazon questions
CodingEasy

Favorite genre problem

Filed under Amazon

Given a map of user IDs to lists of songs they listened to, and a map of song genres to lists of songs in that genre, determine the favorite genre(s) for each user. The favorite genre is the one with…

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.