天天一道LeetCode-----括号匹配

Valid Parentheses 原题连接Valid Parenthesesweb 意思是判断是否知足匹配关系,使用栈遍历一遍便可svg class Solution { public: bool isValid(string s) { std::stack<char> st; for(int i = 0; i < s.size(); ++i)
相关文章
相关标签/搜索