思路1 按照start排序,再合并
有点像machine test guide中看最多节目的那道题。
复杂度:Sorting takes O(n log(n)) and merging the intervals takes O(n). So, the resulting algorithm takes O(n log(n)).
Last updated
有点像machine test guide中看最多节目的那道题。
复杂度:Sorting takes O(n log(n)) and merging the intervals takes O(n). So, the resulting algorithm takes O(n log(n)).
Last updated