Advertisement
allanbreyes

Short code for hamming number

Oct 29th, 2014
1,998
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.07 KB | None | 0 0
  1. def hamming(a, b):
  2.     return sum(x != y for x, y in map(None, a, b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement