Skip to content

Commit 8027af9

Browse files
authored
Update reordered-power-of-2.py
1 parent 1113e49 commit 8027af9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/reordered-power-of-2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Time: O((logn)^2)
2-
# Space: O(logn)
1+
# Time: O((logn)^2) = O(1) due to n is a 32-bit number
2+
# Space: O(logn) = O(1)
33

44
# Starting with a positive integer N,
55
# we reorder the digits in any order (including the original order)

0 commit comments

Comments
 (0)