3065. Minimum Operations to Exceed Threshold Value I
You are given a 0-indexed integer array
nums
, and an integerk
.In one operation, you can remove one occurrence of the smallest element of
nums
.Return the minimum number of operations needed so that all elements of the array are greater than or equal to
k
.
1 | class Solution { |