$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · hard · #312

What goes in the blank?

# isolate the lowest set bit: 12 (0b1100) -> 4
low = x & (____x)

Answer: - (also accepted: -)

In two's complement -x is ~x + 1, which shares only the lowest set bit with x.
Play Problem Solving ▸