Skip to content

Commit f9cd869

Browse files
authored
Update 0007_reverse_integer.py
1 parent 82aa592 commit f9cd869

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

problems/easy/0007_reverse_integer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ class Solution:
4141

4242
# x *= neg
4343
# return x if (x >= pow(-2, 31)) and x < pow(2, 31) else 0
44-
# Complexity log(x) because the number of loop runs depends on
45-
# the number of digits we need to go through
44+
# Complexity O(log(n))
4645
def reverse(self, x: int) -> int:
4746
INT_MAX = pow(2, 31) - 1
4847

0 commit comments

Comments
 (0)