Merge Intervals
摘要:
Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].排序/** * Definition for an interval. * struct Interval { * int start; * int end; * Interval() : start(0), end(0) {} * Interval(int s, int e) : start(... 阅读全文
posted @ 2014-03-23 16:17 pengyu2003 阅读(141) 评论(0) 推荐(0) 编辑