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.

Community Answers

1 answer from the community

Unlock Full Access

Answer any un-answered question from our database to unlock all community answers for 30 days.

Give & Take

Practice More Questions