Given a collection of Intervals, the task is to merge all of the overlapping Intervals.
- Time : O(nlogn)
- Space : O(n)
c++
1 | class Solution { |