所在目录:
教材与参考资料 / 程序设计类 / 数据结构&算法 / 算法 / 面试与力扣题目详解 / Leetcode题目和解答 / java-leetcode / insert-interval
下载地址:
文本预览:
## Looks like [Merge Intervals](../merge-intervals)
`Merge Intervals` does a sort inside the function, good news for us is that the input is already sorted.
What we need to do is to [Search Insert Position](../search-insert-position), and insert the new interval there. (Insertion Sort)
Now call `Merge Intervals` without sort.
点赞
回复