NeetCode #844LC-729MediumIntervals
← Back to All Problems#844 · #729 · My Calendar I(我的日程安排表 I)
📌 Problem Statement & Constraints
Design a calendar that stores non-overlapping half-open intervals
[start, end). Implement book(start, end) which returns true and adds the booking if it does not cause a double booking, 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!