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

What goes in the blank?

# true when the lowest bit is set
is_odd = n ____ 1

Answer: & (also accepted: &, and)

Bitwise AND with 1 isolates the least-significant bit, which is 1 for odd numbers.
Play Problem Solving ▸