Implement a calendar that checks whether a new meeting can be scheduled.
Unlock detailed company stats for this questionUpgrade
Implement a calendar with addMeeting(startTime, durationMinutes) and canSchedule(startTime, durationMinutes), which checks whether a new meeting fits without overlapping existing ones. Example: after cal.addMeeting("10:00", 15), cal.addMeeting("11:00", 30), cal.addMeeting("13:00", 50) and cal.addMeeting("16:00", 15), cal.canSchedule("09:00", 60) returns True and cal.canSchedule("13:00", 30) returns False.
Community answers
No answers contributed by the community yet.


