Problem 1353 · Medium

Maximum Number of Events That Can Be Attended

Walk the days in order and attend the open event that ends soonest, the choice that leaves the most room later.

Open the interactive visualisation