You are viewing a single comment's thread. Return to all comments →
Python3
def sumXor(n): # Write your code here return 1 if n == 0 else 2 ** bin(n)[2:].count("0")
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 →
Python3