We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a19d17 commit 3561253Copy full SHA for 3561253
Python/reordered-power-of-2.py
@@ -1,5 +1,5 @@
1
-# Time: O((logn)^2)
2
-# Space: O(logn)
+# Time: O((logn)^2) = O(1) due to n is a 32-bit number
+# Space: O(logn) = O(1)
3
4
# Starting with a positive integer N,
5
# we reorder the digits in any order (including the original order)
0 commit comments