1353. Maximum Number of Events That Can Be Attended
Last updated
Last updated
**Input:** events = [[1,2],[2,3],[3,4]]
**Output:** 3
**Explanation:** You can attend all the three events.
One way to attend them all is as shown.
Attend the first event on day 1.
Attend the second event on day 2.
Attend the third event on day 3.**Input:** events= [[1,2],[2,3],[3,4],[1,2]]
**Output:** 4**Input:** events = [[1,4],[4,4],[2,2],[3,4],[1,1]]
**Output:** 4**Input:** events = [[1,100000]]
**Output:** 1**Input:** events = [[1,1],[1,2],[1,3],[1,4],[1,5],[1,6],[1,7]]
**Output:** 7