InterviewDB Question

Time Segment: Merge and Query Overlapping Time Intervals to Find Free and Busy Windows

Question Details

Problem You are given a list of time intervals [start, end] (integers, minutes since midnight) representing busy periods. Implement: merge() -> list[list[int]] -- return merged non-overlapping busy intervals. free_slots(day_start, day_end) -> list[li…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone