您当前的位置: 首页 > 

对方正在debug

暂无认证

  • 6浏览

    0关注

    399博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

逆波兰表达式求值(栈)

对方正在debug 发布时间:2020-03-03 23:23:54 ,浏览量:6

题目:https://leetcode-cn.com/problems/evaluate-reverse-polish-notation/

class Solution {
public:
    int evalRPN(vector& tokens) {
        //根据逆波兰表示法,求表达式的值。
        stack st;
        int n = tokens.size();
        for(int i = 0,x,y;i             
关注
打赏
1664895754
查看更多评论
0.0410s