CodingAbout 3 minutes · typed, no micFree drill · try as often as you like
Given a list of intervals as start and end pairs, merge every set of overlapping intervals and return the result sorted by start. Intervals that touch, like [1, 4] and [4, 5], merge.