We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08e87b1 commit 129bba2Copy full SHA for 129bba2
scheduling/weighted_interval_scheduling.py
@@ -44,7 +44,7 @@ def find_max_weight(jobs: list[tuple[int, int, int]]) -> int:
44
200
45
"""
46
# Sort jobs based on their end times
47
- jobs.sort(key=lambda ele : ele[1])
+ jobs.sort(key=lambda ele: ele[1])
48
49
# Initialize dp array to store the maximum weight up to each job
50
length = len(jobs)
0 commit comments