2357. Make Array Zero by Subtracting Equal Amounts

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 2357

class Solution:
    def minimumOperations(self, nums: List[int]) -> int:
        return len({x for x in nums if x})