Ensure that you are logged in and have the required permissions to access the test.
A server error has occurred. Please refresh the page or try after some time.
An error has occurred. Please refresh the page or try after some time.
0
Given a string S consisting of opening and closing parenthesis '(' and ')'. Find length of the longest valid parenthesis substring.
Input: Each line has a string S of character '(' and ')' of length N.
Constraints: 1 <= T <= 500 1 <= N <= 105
A password reset link will be sent to the following email id
?