https://leetcode.com/problems/evaluate-reverse-polish-notation/?envType=study-plan-v2&envId=top-interview-150
if token is number: stack.append(token) continue if token is operand: num1 = stack.pop() num2 = stack.pop() result = calculate(num1,num2) stack.append(result)
매우 간단한 스택 문제 스택의 교과서