Task Scheduler

Given a string tasks of uppercase letters representing task types and a cooldown n. In each time unit you may execute one task or stay idle. Two tasks of the same type must be separated by at leas...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: