Level: Unknown Level
Round: Phone Screen · Type: Coding · Difficulty: 6/10 · Duration: 60 min · Interviewer: Unfriendly
Topics: Data Analysis, User Engagement
Location: Los Gatos, CA
Interview date: 2025-08-15
Got offer: False
I had a technical phone screen. I was asked to analyze user engagement patterns across different content. The goal was to classify viewing sessions and determine each user's most common engagement pattern.
The coding question I got was:
`python
viewing_data = [ {"account_id": "U1", "title_id": "T1", "title_runtime_secs": 3600, "watched_secs": 3500, "day_nbr": 1}, {"account_id": "U1", "title_id": "T2", "title_runtime_secs": 5400, "watched_secs": 5000, "day_nbr": 3}, {"account_id": "U1", "title_id": "T3", "title_runtime_secs": 7200, "watched_secs": 6800, "day_nbr": 6}, {"account_id": "U2", "title_id": "T1", "title_runtime_secs": 3600, "watched_secs": 3500, "day_nbr": 5}, {"account_id": "U2", "title_id": "T4", "title_runtime_secs": 2700, "watched_secs": 2600, "day_nbr": 9}, {"account_id": "U2", "title_id": "T5", "title_runtime_secs": 4500, "watched_secs": 4300, "day_nbr": 10}, {"account_id": "U3", "title_id": "T2", "title_runtime_secs": 5400, "watched_secs": 5200, "day_nbr": 2}, {"account_id": "U3", "title_id": "T3", "title_runtime_secs": 7200, "watched_secs": 6500, "day_nbr": 3}, {"account_id": "U3", "title_id": "T4", "title_runtime_secs": 2700, "watched_secs": 2000, "day_nbr": 4}, {"account_id": "U4", "title_id": "T1", "title_runtime_secs": 3600, "watched_secs": 2000, "day_nbr": 1}, ]
def analyze_engagement_patterns(viewing_data): TODO `
My approach:
Key insights: