values. Can you pick two or more of its elements so that their bitwise OR (|) ends with at least one zero in binary?
For example, 6 is 110 in binary and ends with a zero, while 5 is 101 and does not.
Return True if such a choice exists, and False otherwise.values=[3, 10, 7, 12] → True
10 | 12 = 14, which is 1110 in binary and ends with a zero.
values=[5, 8, 11] → False
Only 8 is even. Any group of two or more takes in an odd number, which sets the last bit of the OR.
values=[2, 2] → True
values=[3, 10, 7, 12]
True
Run checks the first 3 tests in your browser. Submit checks all 122 tests on the server, hidden ones included.