You are viewing a single comment's thread. Return to all comments →
def counterGame(n): return 'Richard' if (n.bit_count() + bin(n)[::-1].index('1')) & 1 else 'Louise'
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 →