Back to problems

Maximum Number of Events That Can Be Attended

Algorithm · Snowflake · Hard

You are planning to attend a series of events, but you can only be at one event each day. You receive a schedule containing the start and end days for each event. An event can be attended on any single day within its inclusive range. The challenge is to choose which events to go to—and on which specific days—so that you maximize the total number of events you attend. For example, some events might run for several days, allowing you flexibility in choosing the day, while…

Checking your access…