Problem 1494 · Hard

Parallel Courses II

Track finished courses as bitmasks and advance one semester at a time, taking as many ready courses as allowed.

Open the interactive visualisation