Python [one pass]
\nclass Solution(object):\n    def arraySign(self, nums):\n        r = 1\n        for i in nums:\n            r *= i\n        if r>0:\n            return 1\n   
```\nclass Solution(object):\n    def arraySign(self, nums):\n        r = 1\n        for i in nums:\n            r *= i\n        if r>0:\n            return 1\n        if r<0:\n            return -1\n        return 0\n```
[]