← Questions

Total listener time per live audio room from an event log

0
xAICodingLast asked Feb 2026

A time-ordered log records rooms being created and users joining and leaving them. Compute the total user-time spent in each room, handling users who never leave and rooms that end. Follow-ups slice the same totals other ways.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding