InterviewDB Question

Friendship Time - Compute Overlapping Online Windows

Question Details

Problem A social platform logs each user's online sessions as (user_id, start_time, end_time). Two users are "co-online" during any time window where both are simultaneously active. Given a list of sessions and two user IDs u and v, return the total…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone