Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Which data structure can you use to store the number of tasks of each difficulty level?
For any particular difficulty level, what can be the optimal strategy to complete the tasks using minimum rounds?
When can we not complete all tasks of a difficulty level?