All Problems

Task Scheduler

Mediumos-flavorExpected: O(n) time, O(1) spaceInterview Context

Problem

Given tasks and a cooldown interval n between same tasks, return the minimum intervals the CPU needs to finish all tasks.

Loading...