Search⌘ K

DIY: Task Scheduler

Understand how to implement a task scheduler that respects cooldown intervals between repeated tasks. This lesson helps you develop an algorithm to calculate the minimum time needed for a CPU to complete given tasks, preparing you for related coding interview problems.

We'll cover the following...

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 given task, a ...