The problem
Given a list of intervals [start, end], merge all overlapping intervals and return the non-overlapping set that covers the same ranges.
Unlock the full guide
Premium members get every DSA, system design, company and role interview guide — plus AI practice, mock interviews, and analytics.
Unlock with Premium