Sponsored
Sponsored
Solve with full IDE support and test cases
Use these hints if you're stuck. Try solving on your own first.
Consider the binary representation of <code>nums[i]</code>.
Answer is -1 for even <code>nums[i]</code>.
Try unsetting a single bit from <code>nums[i]</code>.