摘要:
20230204 通过 20230207 通过 20230220 通过 20230302 通过 题目 约束 解法 class Solution { public: bool isValid(string s) { int n = s.size(); if (n % 2 == 1) { return 阅读全文
摘要:
stack stk; stk.empty() empty():在栈中没有元素的情况下返回 true stk.top() top():返回一个栈顶元素的引用,类型为 T&。如果栈为空,返回值未定义。 stk.pop() pop():弹出栈顶元素 stk.push(ch) push(const T& o 阅读全文
摘要:
![](https://img2023.cnblogs.com/blog/1303455/202301/1303455-20230131204410965-1047531053.png) ![](https://img2023.cnblogs.com/blog/1303455/202301/1303455-20230131204801210-1777882830.png) ![](https:// 阅读全文