Schedule non-overlapping events to maximize the number you can attend.
Constraints
Example
>>> max_events([]) 0 >>> max_events([(1,3), (3,5), (6,8)]) 2 >>> max_events([(1,2), (2,3), (3,4), (4,5)]) 2 >>> max_events([(1,5), (2,3), (4,6), (7,8)]) 3
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints