其他分享
首页 > 其他分享> > LeetCode2_Evaluate Reverse Polish Notation评估逆波兰表达式(栈)

LeetCode2_Evaluate Reverse Polish Notation评估逆波兰表达式(栈)

作者:互联网

题目:

Evaluate the value of an arithmetic expression in Reverse Polish Notation.

Valid operators are+,-,*,/. Each operand may be an integer or another expression.

Some examples:

  ["2", "1", "+", "3", "*"] -> ((2 + 1) * 3) -> 9
  ["4", "13", "5", "/", "+"] -> (4 + (13 / 5)) -> 6

 

 

参考链接:

https://www.cnblogs.com/dolphin0520/p/3708587.html

 

标签:13,LeetCode2,Reverse,Notation,Evaluate,Polish,expression
来源: https://www.cnblogs.com/grooovvve/p/10825874.html