Simple approach 0ms Solution
\nclass Solution {\npublic:\n    int arraySign(vector<int>& nums) {\n        int res = 1;\n        for(auto x : nums)\n        {\n            if(x < 0) res *= -
```\nclass Solution {\npublic:\n    int arraySign(vector<int>& nums) {\n        int res = 1;\n        for(auto x : nums)\n        {\n            if(x < 0) res *= -1;\n            else if(x == 0) return 0;\n        }\n        return res;\n    }\n};\n```
['C', 'C++']