Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 283 Bytes

File metadata and controls

22 lines (11 loc) · 283 Bytes

Problem 56: Merge Intervals

Difficulty: Medium

Problem

Given a collection of intervals, merge all overlapping intervals.

Example

Given the matrix

Given [1,3],[2,6],[8,10],[15,18],

return [1,6],[8,10],[15,18].

Return [1,2,3,6,9,8,7,4,5]