leetcode-20-有效的括號

class Solution { public:     bool isValid(string s) {         stack<char> helper;         int N = s.length();         for(int i =0; i<N; i++){             if (s[i] == '{' || s[i] == '(' ||s[i] == '[')
相關文章
相關標籤/搜索