Day 1: Lintcode【区间】【简单】【合并区间*2】

一. 描述 Given a collection of intervals, merge all overlapping intervals. 样例 Example 1: Input: [(1,3)] Output: [(1,3)] Example 2: Input: [(1,3),(2,6),(8,10),(15,18)] Output: [(1,6),(8,10),(15,18)] 挑战 O(
相关文章
相关标签/搜索