Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
How can sorting the events on the basis of their start times help? How about end times?
How can we quickly get the maximum score of an interval not intersecting with the interval we chose?