mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-10-05 21:29:29 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
08e87b140b
commit
129bba2343
|
@ -44,7 +44,7 @@ def find_max_weight(jobs: list[tuple[int, int, int]]) -> int:
|
|||
200
|
||||
"""
|
||||
# Sort jobs based on their end times
|
||||
jobs.sort(key=lambda ele : ele[1])
|
||||
jobs.sort(key=lambda ele: ele[1])
|
||||
|
||||
# Initialize dp array to store the maximum weight up to each job
|
||||
length = len(jobs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user