C++ - Easy And Faster
\nclass Solution {\npublic:\n    int arraySign(vector<int>& nums) \n    {\n        int ans = 1;\n        for(int i : nums)\n        {\n            if(i < 0)\n  
```\nclass Solution {\npublic:\n    int arraySign(vector<int>& nums) \n    {\n        int ans = 1;\n        for(int i : nums)\n        {\n            if(i < 0)\n                ans *= -1;\n            if(i == 0)\n                return 0;\n        }\n        return ans;\n    }\n};\n```
[]