You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cp_python/random_questions/calendar.py
+23-16Lines changed: 23 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
"""
2
-
For two calendars, find time periods to schedule a meeting. Each calendar is represented by a list of meetings, hence during those periods no meeting can be scheduled. Also, every calendar comes with bounds telling us the earliest and the latest we can schedule meetings.
2
+
For two calendars, find time periods to schedule a meeting. Each calendar is represented by a list of meetings,
3
+
hence during those periods no meeting can be scheduled. Also, every calendar comes with bounds telling us the earliest
4
+
and the latest we can schedule meetings.
3
5
4
6
sample input:
5
7
# calendar one, meetings and bounds
@@ -13,45 +15,47 @@
13
15
14
16
fromtypingimportList, Optional
15
17
18
+
16
19
classTime:
17
20
def__init__(self, time_str: str):
18
21
"""Format or time_str assumed to be military: '15:30'."""
0 commit comments