Evaluate a list of reverse-Polish-notation tokens (ints and + - * /, integer division truncating toward zero).
Write eval_rpn(tokens).
Starter:
def eval_rpn(tokens):
# TODO
pass
Solve it interactively in your browser (no setup), check your answer instantly, and keep your daily streak going on IWTLP: https://iwtlp.com/challenge
Top comments (0)