(1)Merge Intervals https://leetcode.com/problems/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]. 思路:贪心思想.首先根据intervals的start进行排序.排完序之后,先将第一个i…