You are given an integer array nums and an integer k.
An array is considered balanced if the maximum element in the array is less than or equal to the minimum element multiplied by k.
Return the minimum number of elements to remove from nums so that the remaining array becomes balanced.
Constraints:
nums.length
nums[i]
k
You are given an integer array nums and an integer k.
An array is considered balanced if the maximum element in the array is less than or equal to the minimum element multiplied by k.
Return the minimum number of elements to remove from nums so that the remaining array becomes balanced.
Constraints:
nums.length
nums[i]
k