You are given a nums and an integer k.
In one operation, you can remove one occurrence of the smallest element from nums.
Return the minimum number of operations required so that every element in nums is greater than or equal to k.
Constraints:
nums.length
nums[i]
k
The input is generated such that there is at least one index i such that nums[i] k.
You are given a nums and an integer k.
In one operation, you can remove one occurrence of the smallest element from nums.
Return the minimum number of operations required so that every element in nums is greater than or equal to k.
Constraints:
nums.length
nums[i]
k
The input is generated such that there is at least one index i such that nums[i] k.