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.

Practice More Questions

3 answers published. Last candidate submission on Jul 21 2026, 6:57pm PDT. Interview question asked to Software Engineers interviewing at Cleo, Pluralsight, Wise and other companies. Original question asked: Merge Overlapping Intervals. Question last reported by a candidate interviewing at OneWeb for a Software Engineer interview on Jul 31 2026, 9:16pm PDT.