#2895
Minimum Processing Time
pupil · 575 · lc medium +29 · 70.2% accepted · 282 likes · top 79%
Description
A certain number of processors each have 4 cores, and the total number of tasks equals four times the number of processors. Each task goes to a distinct core, and each core handles only one task.
An array processorTime gives when each processor becomes free, and an array tasks gives task durations. Return the earliest time by which all tasks are complete.
Code
1
2
3