There are some processes that need to be executed. Amount of a load that process causes on a server that runs it, is being repre
sented by a single integer. Total load caused on a server is the sum of the loads of all the processes that run on that server. You have at your disposal two servers, on which mentioned processes can be run. Your goal is to distribute given processes between those two servers in the way that, absolute difference of their loads will be minimized. Write a function that, given an array A of N integers, of which represents loads caused by successive processes, the function should return the minimum absolute difference of server loads.
1 answer:
You might be interested in
Yes i would love to help the cause <span />
Answer:
the operating system or web browser
Answer: $420
Explanation: from the question above, mercy worked 42 hours at $10 an hour. Her total pay before tax is: 42 x 10 =
$420