【Leetcode】Insert Interval.pdfVIP

  • 17
  • 0
  • 约4.14千字
  • 约 3页
  • 2017-09-16 发布于浙江
  • 举报
为为梦梦起起航航 不不积积小小流流无无以以成成江江海海 【【LLeeeettccooddee】】IInnsseerrtt IInntteerrvvaall 分类 leetcode 2013-12-18 12:42 164人阅读 评论 (0) 收藏 举报 插入区间leetcode Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their start times. Example 1 Given intervals [1,3],[6,9], insert and merge [2,5] in as [1,5],[6,9]. Example 2 Given [1,2],[3,5],[6,7],[8,10],[12,16], insert and merge [4,9] in as [1,2],[3,10],[12,16]. This is because the new interval [4,9] overlaps wi

文档评论(0)

1亿VIP精品文档

相关文档