Merge Intervals
1 min readDec 11, 2015
Given a collection of intervals, merge all overlapping intervals.
Get yanginblack’s stories in your inbox
Join Medium for free to get updates from this writer.
For example,
Given [1,3],[2,6],[8,10],[15,18],
return [1,6],[8,10],[15,18].
Press enter or click to view image in full size![]()









