453. Minimum Moves to Equal Array Elements
Medium
Input: nums = [1,2,3]
Output: 3
Explanation: Only three moves are needed (remember each move increments two elements):
[1,2,3] => [2,3,3] => [3,4,3] => [4,4,4]Input: nums = [1,1,1]
Output: 0Last updated