Problem 1953 · Medium

Maximum Number of Weeks for Which You Can Work

Find the maximum number of weeks you can work on projects without repeating a project in consecutive weeks. The visual shows project bars with the largest one capped against the rest and weeks scheduled as colored blocks.

Open the interactive visualisation