Skip to content

Commit 9a8449f

Browse files
authored
Update last-stone-weight-ii.cpp
1 parent e5ff62d commit 9a8449f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/last-stone-weight-ii.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Time: O(n * s), s is sum(stones)
2-
// Space: O(s)
1+
// Time: O(2^n)
2+
// Space: O(2^n)
33

44
class Solution {
55
public:

0 commit comments

Comments
 (0)