Python Code #onelinecoding


#1

class Solution:
# @param A : unsigned integer
# @return an unsigned integer
def reverse(self, A):
return int(((34-len(bin(A)))*“0”+bin(A)[2:])[::-1],2)