User Engagement Patterns
Examples
Example 1:
Input: 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": "U2", "title_id": "T1", "title_runtime_secs": 3600, "watched_secs": 800, "day_nbr": 5},
{"account_id": "U2", "title_id": "T2", "title_runtime_secs": 2700, "watched_secs": 500, "day_nbr": 9},
{"account_id": "U3", "title_id": "T1", "title_runtime_secs": 3600, "watched_secs": 1800, "day_nbr": 2}
]
Output: {"Completed": 1, "Abandoned": 1, "Sampled": 1}
Explanation: