The Minimum Number Of Moves
The Minimum Number Of Moves Little chief has his own restaurant in the city. There are N workers there. Each worker has his own salary. The salary of the i-th worker equals to Wi (i = 1, 2, …, N). Once, chief decided to equalize all workers, that is, he wants to make salaries of […]