Skip to content

Commit

Permalink
leetcode min ops to exceed threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Mar 4, 2024
1 parent 58e4f2a commit 230f398
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from typing import List


class Solution:
def minOperations(self, nums: List[int], k: int) -> int:
return sum(e < k for e in nums)

0 comments on commit 230f398

Please sign in to comment.