leetcode621. Task Scheduler
Intuition
Image each cycle as a bucket, put a task in each bucket in turn, simulate it then get a formula:
mx
is the most taskn
is the number of taskssame
is the number of task same with the most task
Time Complexity:
Space Complexity:
Solution
Last updated