Skip to content

Commit 23f6221

Browse files
committed
Update flip-game-ii.py
1 parent e66d233 commit 23f6221

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/flip-game-ii.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Time: O(n^2)
2-
# Space: O(n)
1+
# Time: O(n + c^2)
2+
# Space: O(c)
33

4-
# The best theory solution (DP, O(n^2)) could be seen here:
4+
# The best theory solution (DP, O(n + c^2)) could be seen here:
55
# https://leetcode.com/discuss/64344/theory-matters-from-backtracking-128ms-to-dp-0m
66
class Solution(object):
77
def canWin(self, s):

0 commit comments

Comments
 (0)