def hammingDistance(self, x, y):
count = 0
binary = bin(x ^ y)[2:]
for c in binary:
if c == '1':
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.