Merge Overlapping Intervals
Given an array of intervals where intervals[i] = [start_i, end_i], merge all overlapping intervals and return an array of the non-overlapping intervals that cover all the intervals in the input. Two intervals [a, b] and [c, d] overlap if there is any point shared between them (e.g., [1, 2] and [2, 3] overlap). Constraints: 1 <= intervals.length <= 10^4 intervals[i].length == 2 0 <= start_i <= end_i <= 10^4
JavaSortingGreedy
00