Task Scheduler With Cooldown
Medium
Greedy Scheduling
Tasks are labelled by letters. The same task must be separated by at least n idle or other slots. Print the minimum number of time slots to finish all tasks.
Constraints
1 <= |tasks| <= 10^4 0 <= n <= 100
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.