Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
XOR and sum solution in Clear category for The Hamming Distance by tommy6073
def checkio(n, m):
n_xor_m = str(bin(n ^ m))
return sum(digit == '1' for digit in n_xor_m)
July 12, 2016