摘要: 手动模拟栈 如果stack.top == 1 , 说明栈为空。 阅读全文
posted @ 2020-04-21 22:16 从前有座山,山上 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 题目链接 https://leetcode cn.com/problems/valid parentheses/ 代码 注意: 用leetcode提交的C++代码,其中字符串s的长度使用:s.size() 用codeblocks编译:strlen(s) 阅读全文
posted @ 2020-04-21 21:58 从前有座山,山上 阅读(122) 评论(0) 推荐(0) 编辑