Maximum Number of Events That Can Be Attended
Medium
Intervals & Line Sweep
Event i runs from day start[i] to day end[i] inclusive. You can attend one event per day and an event can be attended on any day within its range. Print the maximum number of events you can attend.
Constraints
1 <= n <= 10^5 1 <= start <= end <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.