NeetCode #845LC-731MediumIntervals
← Back to All Problems

#845 · #731 · My Calendar II(我的日程安排表 II)

📌 Problem Statement & Constraints

Design a calendar that allows double bookings but never triple bookings. Implement book(start, end) which returns true and adds the event if no time is covered by three events, or false otherwise. Constraints: 0 <= start < end <= 10^9, at most 1000 calls to book.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!