Skip to content

Commit d0a27cf

Browse files
authored
Update powx-n.cpp
1 parent 79fd4b3 commit d0a27cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

C++/powx-n.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Time: O(logn) = O(1)
1+
// Time: O(logn)
22
// Space: O(1)
33

44
// Iterative solution.
@@ -18,8 +18,8 @@ class Solution {
1818
}
1919
};
2020

21-
// Time: O(logn) = O(1)
22-
// Space: O(logn) = O(1)
21+
// Time: O(logn)
22+
// Space: O(logn)
2323
// Recursive solution.
2424
class Solution2 {
2525
public:

0 commit comments

Comments
 (0)