Given an integer array nums, return the minimum number of moves required to make all elements in nums equal.
In one move, you can increment any single element of the array by
Constraints:
nums.length
nums[i]
Given an integer array nums, return the minimum number of moves required to make all elements in nums equal.
In one move, you can increment any single element of the array by
Constraints:
nums.length
nums[i]