You are given n events, where each event i can be attended on any single day within an inclusive range . You can attend at most one event per day, and attending an event consumes exactly one day.
Return the maximum number of events you can attend.
events
of length
n
, where
events[i] = [start_i, end_i]
.
1 <= n <= 1e5
1 <= start_i <= end_i <= 1e5
(or up to ~
1e9
in some variants)
[[1,2],[2,3],[3,4]]
3