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 3491901 commit d3abc71Copy full SHA for d3abc71
strings/longest_valid_parenthesis.py
@@ -1,4 +1,4 @@
1
-def longest_valid_parenthesis(self, s: str) -> int:
+def longest_valid_parenthesis(s: str) -> int:
2
"""
3
Returns the length of the longest valid parenthesis
4
>>> longest_valid_parenthesis('(()')
0 commit comments