摘要: Problem : Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 思路 : 将区间的左端点按从小到大进行排序,然后观察相邻2个区间是否有公共部分,如果有公共部分则选取右端 阅读全文
posted @ 2020-01-30 20:07 littledy 阅读(86) 评论(0) 推荐(0)