467. Equalizing Array Elements
Om has given Satyam an array of N integers. He wants to know the minimum number of operations required to make all the elements of the array equal. In a single operation, Satyam can increment N-1 elements of the array by 1. Can you help Satyam find the minimum number of operations?
The first line contains a single integer N, which represents the size of the array. The second line contains N space-separated integers that represent the elements of the array.
Print the minimum number of moves required to make all the elements of the array equal using the given operation.
3 1 2 3