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