Skip to content

Commit 8441f5e

Browse files
authored
Update longest_valid_parenthesis.py
added longest_valid_parenthesis.py
1 parent d3abc71 commit 8441f5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

strings/longest_valid_parenthesis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
def longest_valid_parenthesis(s: str) -> int:
22
"""
33
Returns the length of the longest valid parenthesis
4+
:param s:
5+
:return: int
46
>>> longest_valid_parenthesis('(()')
57
2
68
>>> longest_valid_parenthesis(')()())')

0 commit comments

Comments
 (0)