a guest Oct 21st, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def countBits(num):
- '''Count number of bits in a positively signed number.'''
- count = 0
- for i in iter(lambda: fn(num), 0):
- num = i
- count += 1
- return count + 1
RAW Paste Data