We use cookies for analytics and ad measurement to improve lessons. Cookie policy

Memory gallery / Merge Intervals

Medium · Intervals

Merge Intervals

Combine overlapping intervals into disjoint ranges.

Merge Intervals memory room
The slat under his thumbs has already swallowed a third booking that touches neither of the two — three made one. — Overlapping bookings fuse into one.

Retrieval check

With the notes hidden, what pattern should this room bring back?

Related free rooms

  • Interval Scheduling (Activity Selection)
  • 3Sum
  • Two Sum II - Input Array Is Sorted