0 votes

Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the longest valid parentheses substring is "()", which has length = 2.

Anyone point me on how to solve this?

asked Jul 21 in Computer Science - IT by anonymous | 5 views

Your answer

Upload an image:

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.