[Leetcode] Task Scheduler
The difficulty of this problem is understanding the pattern of how task and idle are placed.
Description
Given a characters array tasks
, representing the tasks a CPU needs to do, where each letter represents a different task. Tasks…