Schedule Tasks on Minimum Machines
Try to solve the Schedule Tasks on Minimum Machines problem.
We'll cover the following...
Statement
We are given an input array, tasks
, where tasks[i]
A machine can execute only one task at a time.
A machine can begin executing a new task immediately after completing the previous one.
An unlimited number of machines are available.
Find the minimum number of machines required to complete these
Constraints:
tasks.length
tasks.length
tasks
i
.start
tasks
i
.end
Examples
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy