Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
the_hamming_distance solution in Clear category for The Hamming Distance by dannedved
def checkio(n, m):
n, m = map(lambda x : "{:0{}b}".format(x, len(bin(max([n, m]))[2:])), [n, m])
return sum([n[i] != m[i] for i in range(len(n))])
July 24, 2019
Comments: