We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b69e9e commit 735682bCopy full SHA for 735682b
algorithms/intervals/employee_free_time/__init__.py
@@ -25,6 +25,9 @@ def employee_free_time(schedules: List[List[Interval]]) -> List[Interval]:
25
for schedule_interval in schedule:
26
all_schedules.append(schedule_interval)
27
28
+ if not all_schedules:
29
+ return []
30
+
31
# sort by start time
32
all_schedules.sort(key=lambda x: x.start)
33
0 commit comments