Search⌘ K

DIY: Task Scheduler

Understand how to solve the CPU task scheduling problem that requires a specific cooldown period between identical tasks. Learn to calculate the minimum total time needed to execute all tasks while respecting idle intervals, applying these techniques to coding interviews and real-world scenarios.

Problem statement

You are given a character array of tasks, where each character represents a different task that the CPU needs to carry out. Each time the CPU executes a ...