Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for The Hamming Distance by UFO665
def checkio(n, m):
n, m = bin(n)[2:], bin(m)[2:]
length = len(max([n, m], key=lambda x: len(x)))
return len([elem for elem in zip(list(n.zfill(length)), list(m.zfill(length))) if elem[0] != elem[1]])
Feb. 28, 2016