Algorithm · Salesforce · Medium
There are n machines that must be assigned to k upgrade groups. Machine i has a processing capability equal to capacity[i]. For each group i, the required number of machines is given by numServers[i]. Every machine has to be placed in exactly one group, and each group must contain exactly its required number of machines. The efficiency of a group is computed by subtracting the minimum processing capability in that group from the maximum processing capability in that group.…
Checking your access…