DEV Community

I Want To Learn Programming
I Want To Learn Programming

Posted on

Code Challenge of the Day — Evaluate reverse Polish (medium)

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
Enter fullscreen mode Exit fullscreen mode

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)