This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingTake the most courses so the total duration stays inside each course's last day.
What this asks
Take the most courses so the total duration stays inside each course's last day.
Sort by last day, keep chosen durations in a max-heap, and drop the longest whenever the total overflows.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing