class Solution:
def reverseBits(self, n: int) -> int:
n = list('{:032b}'.format(n))
n.reverse()
return int(''.join(['0','b']+n),2)
位运算 简单
https://leetcode-cn.com/problems/reverse-bits/
class Solution:
def reverseBits(self, n: int) -> int:
n = list('{:032b}'.format(n))
n.reverse()
return int(''.join(['0','b']+n),2)
位运算 简单
https://leetcode-cn.com/problems/reverse-bits/