Skip to content

Commit 640ba46

Browse files
authored
Update reordered-power-of-2.cpp
1 parent 3561253 commit 640ba46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/reordered-power-of-2.cpp

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
class Solution {
55
public:

0 commit comments

Comments
 (0)