Skip to content

Commit f374a12

Browse files
committed
Runtime: 62 ms (Top 13.03%) | Memory: 13.8 MB (Top 53.14%)
1 parent b3fc834 commit f374a12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
# Runtime: 62 ms (Top 13.03%) | Memory: 13.8 MB (Top 53.14%)
2+
13
class Solution:
24
def findComplement(self, num: int) -> int:
35
i = 0
46
while(2**i <= num):
57
i += 1
6-
return (2**i - num - 1)
8+
return (2**i - num - 1)

0 commit comments

Comments
 (0)