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
{优快云:CODE:456670}

本文介绍了一种特殊的数学表达式——逆波兰表达式,并通过示例详细解释了如何求解此类表达式的值。有效运算符包括加、减、乘、除等基本运算。
306

被折叠的 条评论
为什么被折叠?



