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