[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-05 03:28:38 +00:00
parent 08e87b140b
commit 129bba2343

View File

@ -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)