We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c032266 commit e48ec46Copy full SHA for e48ec46
reverse-bits/HodaeSsi.py
@@ -0,0 +1,5 @@
1
+# 시간복잡도: O(1) (32bit)
2
+class Solution:
3
+ def reverseBits(self, n: int) -> int:
4
+ return int(bin(n)[2:].zfill(32)[::-1], 2)
5
+
0 commit comments