Statement
Write mergeIntervals(intervals): each interval is [start, end]. Merge the ones that overlap or touch ([1, 3] and [3, 5] give [1, 5]) and return them sorted by start.
Write mergeIntervals(intervals): each interval is [start, end]. Merge the ones that overlap or touch ([1, 3] and [3, 5] give [1, 5]) and return them sorted by start.
Write mergeIntervals(intervals): each interval is [start, end]. Merge the ones that overlap or touch ([1, 3] and [3, 5] give [1, 5]) and return them sorted by start.