one line python code
Don\'t use this for interview, just for fun :)\n\n\nclass Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        \n        return reduce(lambda x,
Don\'t use this for interview, just for fun :)\n\n```\nclass Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        \n        return reduce(lambda x, y: x*y, [0 if x==0 else (1 if x>0 else -1) for x in nums])\n```
['Python']