Skip to content

Commit 3491901

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b12a42e commit 3491901

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
@@ -27,6 +27,8 @@ def longest_valid_parenthesis(self, s: str) -> int:
2727
while stack:
2828
res = max(res, stack.pop())
2929
return res * 2
30+
31+
3032
if __name__ == "__main__":
3133
s = input()
3234
print(longest_valid_parenthesis(s))

0 commit comments

Comments
 (0)