Given an integer array nums of size n, return the minimum number of moves required to make all array elements equal.
In a single move, you can increment or decrement an element of the array by
Constraints:
n == nums.length
nums.length
nums[i]
Given an integer array nums of size n, return the minimum number of moves required to make all array elements equal.
In a single move, you can increment or decrement an element of the array by
Constraints:
n == nums.length
nums.length
nums[i]