Calculate Episode Retention Rate from TV Show Viewing Logs
Given a list of logs each containing a user ID, TV show name, and episode watched, implement functions to: (1) process the input logs, and (2) calculate the retention rate of each episode, defined as the fraction of users who finished the show after having watched that episode.
Asked at:
Bloomberg
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Early July, 2026
Bloomberg
Senior
Given a list of logs with user ID, TV show name and episode watched, implement functions to: 1) process the input logs 2) calculate the retention rate of each episode based on how many users finished the show after watching that respective episode
Hello Interview Premium
Your account is free and you can post anonymously if you choose.