Facebook | Onsite | Task Scheduler

Anonymous User
2304
Oct 23, 2019
Oct 23, 2019

Position: Software Engineer
Date: 06/17/2019
Location: Menlo Park

Question:
https://leetcode.com/problems/task-scheduler/
Given a list of input tasks to run, and the cooldown interval, output the minimum number of time slots required to run them.

Example:

Input: tasks = [1, 1, 2, 1, 2], cooldown = 2
Output: 8
Explanation: order is 1 _ _ 1 2 _ 1 2
Comments (2)