You are viewing a single comment's thread. Return to all comments →
def sumXor(n): count = 0 while n: count += n % 2 == 0 n //= 2 return pow(2, count)
Seems like cookies are disabled on this browser, please enable them to open this website
Sum vs XOR
You are viewing a single comment's thread. Return to all comments →