Problem 630 · Hard

Course Schedule III

Take courses by deadline, and when one overruns, drop the longest course taken so far.

Open the interactive visualisation