longest-valid-parentheses

class Solution {
public:
    int longestValidParentheses(string s) {
        int res=0,last=-1;
        stackst;
        for(int i=0;i

你可能感兴趣的:(longest-valid-parentheses)