Task Scheduler · Compound Engineer

Task Scheduler

Run all tasks with a cooldown between two runs of the same task, in the fewest time slots. Why always running the task with the most copies left is optimal, simulated with a max-heap and a cooldown queue.

DSAFreeMediumStep-through playerBy Aayush OstwalSolve on LeetCode ↗
Spotted a mistake in this lesson?Report an issue →