Available question text
Implement a booking system that accepts an interval only if adding it does not create any time point covered by three events, with book(start,end) returning true if the booking is allowed and false otherwise. The core challenge is efficiently detecting potential triple-overlaps (times up to 1e9, ≤1000 calls) by tracking existing bookings and their pairwise overlaps (or using a sweep-line/segment approach).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 731. My Calendar II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source