Google Phone Screening Round | SDE 3

Anonymous User
1978
Apr 06, 2025

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)