Fade to Solo
Heap / Priority Queue

Task Scheduler

30 MINMleetcode ↗

Problem

You're given a list of tasks (letters) and a cooldown n: the same task can't run again until at least n other slots have passed (idle or otherwise). Return the minimum total time needed to run every task, in any order you choose.

30 MIN00:00unlocks in 30:00
locked30:00 left