My Calendar I
Medium
Intervals & Line Sweep
Implement a calendar that accepts a booking [start, end) only if it does not overlap an existing booking. For every book request print true if it was accepted, otherwise false.
Constraints
1 <= q <= 1000 0 <= start < end <= 10^9
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.