Consolidate on-call rotation segments
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.
No answer yet. Write the first one; the best answer gets endorsed.
