hacktoberfest-2022-algo-projects icon indicating copy to clipboard operation
hacktoberfest-2022-algo-projects copied to clipboard

code for longest valid parantheses

Open joyeta148 opened this issue 3 years ago • 0 comments

code for longest valid parantheses

Example 1:

Input: s = "(()" Output: 2 Explanation: The longest valid parentheses substring is "()".

Example 2:

Input: s = ")()())" Output: 4 Explanation: The longest valid parentheses substring is "()()".

Example 3:

Input: s = "" Output: 0

joyeta148 avatar Oct 15 '22 11:10 joyeta148