You are viewing a single comment's thread. Return to all comments →
Fun little bit-fiddling
def counterGame(n): return ["Richard", "Louise"][(n & -n).bit_length() + n.bit_count() & 1]
Seems like cookies are disabled on this browser, please enable them to open this website
Counter game
You are viewing a single comment's thread. Return to all comments →
Fun little bit-fiddling
Python