Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Hamming Distance by magda_kudrycka
def checkio(n, m):
a = [int(x) for x in bin(n ^ m)[2:]]
suma = sum(a)
return suma
Nov. 24, 2016