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.
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.
More interviews, more skills, more success.
1 answer from the community
Answer any un-answered question from our database to unlock all community answers for 30 days.
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.