Golang solution faster than 100% with quick explanation
1822. Sign of the Product of an Array\n\n\nThe idea of this solution is elementary:\n\n If the current number in nums is negative, then we can flip the sign\n I
[1822. Sign of the Product of an Array](https://leetcode.com/problems/sign-of-the-product-of-an-array/)\n\n\nThe idea of this solution is elementary:\n\n* If the current number in `nums` is negative, then we can flip the sign\n* If the current number in `nums` is equal to `0`, we can return `0` because any number multiplied by `0` is `0`. You might think that we can check for `if num == 0` after we have iterated, but that won\'t work because we only switch the sign and don\'t multiply by `0`, so we will never know whether there is a `0` in the array.\n\n``` go\nfunc arraySign(nums []int) int {\n    sign := 1\n\n    for _, num := range nums {\n        if num <= -1 {\n            sign = - sign\n        } else if num == 0 {\n            return 0\n        }\n    }\n\n    return sign\n}\n```
['Go']