Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e43a7ca

Browse files
Vinay SanwalVinay Sanwal
Vinay Sanwal
authored and
Vinay Sanwal
committedOct 7, 2024·
Interval Scheduling Algorithm
1 parent 34baa94 commit e43a7ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎scheduling/interval_scheduling_algorithm.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ def interval_scheduling(stimes, ftimes):
2929
ftimes = [int(ft) for ft in ftimes]
3030

3131
ans = interval_scheduling(stimes, ftimes)
32-
print('A maximum-size subset of activities that are mutually compatible is', ans)
32+
33+
34+
if __name__ == "__main__":
35+
from doctest import testmod
36+
37+
testmod()

0 commit comments

Comments
 (0)
Please sign in to comment.