Practice
Learn
← Quit
0 / 0 correct
Algorithms
Hard
1 of 20
What does x & (x − 1) do?
A
Clears the lowest set bit; x is a power of two iff x > 0 and x & (x − 1) == 0
B
Reverses the bits
C
Sets the lowest bit
D
Doubles x