Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def justify(n):
- return n / 2 ** floor( log(n,2) )
- def justify(n):
- return n / int( '1'.ljust( len( bin(n) ) - 2, '0' ), 2 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement