C++ Simple easy code
Do upvote if you found it helpful to keep me motivated \uD83D\uDE0A\u270C\n\nclass Solution {\npublic:\n    int arraySign(vector<int>& nums) {\n        int i , 
***Do upvote if you found it helpful to keep me motivated*** \uD83D\uDE0A\u270C\n```\nclass Solution {\npublic:\n    int arraySign(vector<int>& nums) {\n        int i , count_neg = 0;\n        for(i=0 ; i<nums.size() ; i++)\n        {\n            if(nums[i] == 0)\n                return 0;\n            else if(nums[i] < 0)\n                count_neg++;\n        }\n        if(count_neg %2 == 0)\n            return 1;\n        else\n            return -1;\n    }\n};\n```
[]