Files
leetcode/3065-minimum-operations-to-exceed-threshold-value-i/3065-minimum-operations-to-exceed-threshold-value-i.py
T

13 lines
268 B
Python

class Solution(object):
def minOperations(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: int
"""
count = 0
for n in nums:
if n < k:
count += 1
return count