Each task is a letter and takes one CPU cycle. Two identical tasks must be separated by at least k cooldown cycles (the CPU may idle). Given the list of tasks and k, return the minimum number of…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.