Skip to content

Commit d4c0ef6

Browse files
committed
Update integer-break.cpp
1 parent 627933f commit d4c0ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/integer-break.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Time: O(logn), pow is O(logn).
2-
// Space: O(logn)
2+
// Space: O(1)
33

44
class Solution {
55
public:
@@ -44,7 +44,7 @@ class Solution {
4444
};
4545

4646
// Time: O(n)
47-
// Space: O(logn)
47+
// Space: O(1)
4848
// DP solution.
4949
class Solution2 {
5050
public:

0 commit comments

Comments
 (0)