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 3561253 commit 640ba46Copy full SHA for 640ba46
C++/reordered-power-of-2.cpp
@@ -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
class Solution {
5
public:
0 commit comments