2357. Make Array Zero by Subtracting Equal Amounts

Обновлено: 2024-03-12
1 мин
[]

Содержание

LeetCode problem 2357

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