Weighted Interval Scheduling

medium
Unit 12 · Dynamic Programming II0/3 to milestone

Each job is (start, end, profit). Two jobs are compatible if one ends no later than the other starts. Choose compatible jobs that maximise total profit. Unlike the unweighted version, greedy doesn't work here.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Weighted Interval Scheduling · TechGradify