621. Task Scheduler

    [LeetCode] 621. Task Scheduler

    621. Task Scheduler Medium Given a characters array tasks, representing the tasks a CPU needs to do, where each letter represents a different task. Tasks could be done in any order. Each task is done in one unit of time. For each unit of time, the CPU could complete either one task or just be idle. However, there is a non-negative integer n that represents the cooldown period between two same ta..