Solution using xor and only a bool for memory
\nclass Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        signs = False\n        for x in nums:\n            if x == 0 : return 0\n          
```\nclass Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        signs = False\n        for x in nums:\n            if x == 0 : return 0\n            signs = signs ^ (x < 0)\n        if signs : return -1\n        else: return 1\n```
['Python', 'Python3']