Java solution , 0 ms , Seriously ? why we need % 2 ?
We should just need to flip the count whenever encounter a negative number \n\n   public int arraySign(int[] nums) {\n        int sign = 1; \n        for (int n
We should just need to flip the count whenever encounter a negative number \n```\n   public int arraySign(int[] nums) {\n        int sign = 1; \n        for (int n : nums) {\n            if (n == 0) {\n                return 0; \n            } \n\t\t\tif (n < 0) {\n                sign = -sign; \n            }\n        }\n        return sign; \n    }\n```
['Java']