We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e66d233 commit 23f6221Copy full SHA for 23f6221
Python/flip-game-ii.py
@@ -1,7 +1,7 @@
1
-# Time: O(n^2)
2
-# Space: O(n)
+# Time: O(n + c^2)
+# Space: O(c)
3
4
-# The best theory solution (DP, O(n^2)) could be seen here:
+# The best theory solution (DP, O(n + c^2)) could be seen here:
5
# https://leetcode.com/discuss/64344/theory-matters-from-backtracking-128ms-to-dp-0m
6
class Solution(object):
7
def canWin(self, s):
0 commit comments