Maximize the total capacity of primary servers given secondary server constraints.
Unlock detailed company stats for this questionUpgrade
N servers, cap[i] is the capacity of the i-th server. floor(N/2) servers must be primary and the rest secondary. Each primary server needs its own secondary server, and each secondary must have capacity greater than or equal to its primary. The power of the system is the sum of the capacities of the primary servers. Return the maximum possible power if servers are allocated optimally.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
