Longest Valid Parenthesis [Dynamic programming] | Python Code

Опубликовано: 28 Сентябрь 2024
на канале: nETSETOS
4,463
94

Question:- Given a string A containing just the characters ’(‘ and ’)’

Find the length of the longest valid (well-formed) parentheses substring.
Returns the length of the longest valid (well-formed) parentheses substring.

Input :-
A = "(()"
Output :-
2

Please help our channel by SUBSCRIBING it.

Github Link for Python Code:-https://github.com/netsetos/python_co...

#longest #valid #parenthesis #netsetos