12th March
Problem Statement: Minimum Completion Time with Limited CPUs
You are given an array time[] representing the start times of a set of tasks. Each task takes 6 units of time to complete once it starts. You are also given an integer C representing the number of CPUs available. Each CPU can only handle one task at a time.
Your goal is to schedule all the tasks such that the total time to complete all tasks is minimized.
Return the minimum time at which all tasks will be completed.
Example :-
Input: time = [1, 3, 6], C = 2
Output: 13
next interview - Last week of April.
Please suggest some prep guide..
Comments (14)


