MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / job_sequence_with_deadline.py

File job_sequence_with_deadline.py

scheduling/job_sequence_with_deadline.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2Given a list of tasks, each with a deadline and reward, calculate which tasks can be
3completed to yield the maximum reward. Each task takes one unit of time to complete,
4and we can only work on one task at a time. Once a task has passed its deadline, it

Callers

nothing calls this directly

Calls 1

max_tasksFunction · 0.85

Tested by

no test coverage detected