Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Two-liner solution in Clear category for The Hamming Distance by Denis_Gerashchenko
def checkio(n, m):
(binary_1, binary_2) = tuple(map(lambda x: format(x, '020b'), (n, m)))
return sum(1 for x, y in zip(binary_1, binary_2) if x != y)
Jan. 5, 2019
Comments: