You are given an integer array nums.
The low score of nums is the minimum absolute difference between any two elements at distinct indices, defined as nums[i] nums[j] nums.length.
The high score of nums is the maximum absolute difference between any two elements at distinct indices, defined as nums[i] nums[j] nums.length.
The total score of nums is the sum of its high score and low score.
Return the minimum possible total score of nums after modifying the values of at most
Constraints:
nums.length
nums[i]
You are given an integer array nums.
The low score of nums is the minimum absolute difference between any two elements at distinct indices, defined as nums[i] nums[j] nums.length.
The high score of nums is the maximum absolute difference between any two elements at distinct indices, defined as nums[i] nums[j] nums.length.
The total score of nums is the sum of its high score and low score.
Return the minimum possible total score of nums after modifying the values of at most
Constraints:
nums.length
nums[i]