[mypy] Adds type annotations in other/activity_selection #4052 (#5590)

This commit is contained in:
Andrew Grangaard 2021-10-26 03:10:37 -07:00 committed by GitHub
parent 2606f1bbe5
commit de07245c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ single person, one at a time"""
# finish[] --> An array that contains finish time of all activities
def printMaxActivities(start, finish):
def printMaxActivities(start: list[int], finish: list[int]) -> None:
"""
>>> start = [1, 3, 0, 5, 8, 5]
>>> finish = [2, 4, 6, 7, 9, 9]