Merge Intervals

Given n intervals, each represented as [start, end], merge all overlapping intervals and return a list of non-overlapping intervals, sorted by start, that cover exactly the same ranges as the input....

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: