class Solution:

    def arraySign(self, nums: List[int]) ->int:
        res = 1
        for i in nums:
            if not i:
                return 0
            if i < 0:
                res = -res
        return res

695e163a75a868bb7ea0836df0d8ec034da6a668
<mask token>

class Solution:
    <mask token>

class Solution:

    def arraySign(self, nums: List[int]) ->int:
        res = 1
        for i in nums:
            if not i:
                return 0
            if i < 0:
                res = -res
        return res
