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

1 answer published. Last candidate submission on May 30 2026, 10:12pm PDT. Interview question asked to Software Engineers interviewing at Toast, NortonLifeLock, Yelp and other companies. Original question asked: Merge Overlapping Intervals. Question last reported by a candidate interviewing at Ola for a Software Engineer interview on May 27 2026, 3:19pm PDT.