Consolidate on-call rotation segments

0
Remix

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.

GoogleOnline assessmentLast asked May 2026
No answer yet. Write the first one; the best answer gets endorsed.