Insert Interval — Intervals

Given sorted booked windows and a new one, fold the new window together with every booking it reaches, then return the list.

Intervals · Medium

More in Intervals

All algorithm problems