Easily Understandable O(n) C++ solution (PLEASE UPVOTE)
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n- O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n- O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int arraySign(vector<int>& nums) {\n        int i,j,c=0;\n        for(auto v:nums){\n            if(v<0)\n            c++;\n            if(v==0)\n            return 0;\n        }\n        if(c%2==0)\n        return 1;\n        return -1;\n        \n    }\n};\n```
['Array', 'Math', 'C++']