f*********i 发帖数: 197 | 1 /*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.
* Another example is ")()())", where the longest valid parentheses
substring is "()()", which has length = 4.
* */
请问有没有好解法。多谢 | p*****2 发帖数: 21240 | | h*****3 发帖数: 1391 | | f*********i 发帖数: 197 | |
|