Merge Intervals

Preview

Write a function to consolidate overlapping intervals within a given array intervals, where each interval intervals[i] consists of a start time starti and an end time endi.

Sign in to read the full chapter.

Checking access…