Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Sort the tasks in ascending order of end time
Since there are only up to 2000 time points to consider, you can check them one by one
It is always beneficial to run the task as late as possible so that later tasks can run simultaneously.