Skip to content

Commit 3a8c14a

Browse files
authored
Update 678-Valid-Parenthesis-String.py
1 parent ad136a9 commit 3a8c14a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

678-Valid-Parenthesis-String.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Dynamic Programming: O(n^3)
1+
# Dynamic Programming: O(n^2)
22
class Solution:
33
def checkValidString(self, s: str) -> bool:
44
dp = { (len(s), 0) : True } # key=(i, leftCount) -> isValid

0 commit comments

Comments
 (0)