← Questions

Consolidate on-call rotation segments

0
GoogleCodingLast asked May 2026

An on-call schedule is a list of segments, each naming a person and a start and end time. Merge the segments that belong to the same person and touch or overlap, and return the consolidated schedule in time order.

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