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(
相關文章
相關標籤/搜索