Intervals is a repeated product-company interview pattern because it tests whether you can turn a brute-force idea into a predictable invariant.
Open on LeetCodeGiven intervals, merge all overlapping ranges and return the compact list.
[[1,3], [2,6], [8,10]] -> [[1,6], [8,10]]
Try framing your own approach first. The 30 seconds you think before peeking is where learning happens.
Reveal the approach first.
Your rating tunes when this problem shows up again.