Non-Overlapping Event Calendar
Asked at Uber · Coding Questions · Difficulty: Medium · Last asked Jan 9, 2026
Implement a calendar that stores booked half-open time intervals `[start, end)`. A new booking is valid only if it does not overlap any booking already in the calendar.
Loading the problem…