Merge Overlapping Shifts into an On-Duty Schedule
Asked at Google · Coding Questions · Difficulty: Medium · Last asked Nov 7, 2026
A team publishes its shifts as a list of `[name, start, end]` entries, and shifts of different people can overlap. Build the single combined schedule that shows, for every stretch of time, exactly who is on duty.
Loading the problem…