Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. class Solution(object):
  2. def hammingcode(self,x,y):
  3. return list(bin(x^y)).count('1')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement