DIY: My Calendar
Understand how to implement a MyCalendar class with a Book method that accepts event start and end times. Learn to check for scheduling conflicts and return booking success as a Boolean. This lesson helps you practice common interview scenarios involving time interval management and conflict detection.
We'll cover the following...
We'll cover the following...
Problem statement
You need to implement a class called MyCalendar that has a function called Book(). This function takes the starting and ending time of an event as Book(start, end) as input, and returns a Boolean representing whether the event was ...