Facebook | Onsite | Task Scheduler
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2019-10-23Added By Anonymous
Source: Link
Company: Meta
Role: e3, e4
Interview Stage: Onsite
Location: Menlo Park
Year: 2019
Original Post Content:
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