Short code for hamming number
allanbreyes Oct 29th, 2014 (edited) 801 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def hamming(a, b):
- return sum(x != y for x, y in map(None, a, b))
RAW Paste Data