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