Task Scheduler
Given unit-time tasks and a cooldown n, schedule the tasks so two executions of the same type have at least n intervening time slots. Return the minimum total number of task or idle slots needed to finish everything.
Given unit-time tasks and a cooldown n, schedule the tasks so two executions of the same type have at least n intervening time slots. Return the minimum total number of task or idle slots needed to finish everything.