Coding

Merge Overlapping Intervals

Merge overlapping intervals in an array.

Input: intervals = [[1,4],[4,5]]

Output: [[1,5]]

Explanation: The intervals touch exactly at the 4 mark, so they are successfully merged into a single continuous interval.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

No answers yet

Be the first to share your approach to this question

Practice More Questions