![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈
ChenD17
这个作者很懒,什么都没留下…
展开
-
leetcode-150-逆波兰表达式求值
class Solution { public: int cul(int a, int b, char tokens) {//a:顶一,b:顶二 switch (tokens) { case('+'): return a + b; case('-'): return b - a; case('*'): re...原创 2020-06-23 14:28:31 · 136 阅读 · 0 评论 -
leetcode-20-有效的括号
classSolution{ public: boolisValid(strings){ stack<char>helper; intN=s.length(); for(inti=0;i<N;i++){ if(s[i]=='{'||s[i]=='...原创 2020-06-23 14:28:21 · 150 阅读 · 0 评论