mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 14:57:08 +00:00
13 lines
268 B
Python
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 |