Search
⌘K
Get Premium
Leetcode 1822. Sign of the Product of an Array
Determine the sign of the product of an integer array without computing it directly: return 0 if any element is zero, otherwise return 1 if the count of negative numbers is even and -1 if it's odd.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.