Implement a calendar that checks whether a new meeting can be scheduled.
Unlock detailed company stats for this questionUpgrade
A variation of My Calendar I. Example: cal = Calendar(); cal.addMeeting("10:00", 15); cal.addMeeting("11:00", 30); cal.addMeeting("13:00", 50); cal.addMeeting("16:00", 15); cal.canSchedule("09:00", 60) returns True; cal.canSchedule("13:00", 30) returns False. Code had to run with test cases.
Community answers
No answers contributed by the community yet.


