Exercises/#96 Evaluate Reverse Polish Notation
#96

Evaluate Reverse Polish Notation

MediumπŸ“š Stack & Queue
70 XP

Problem

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

Examples

Input: tokens=['2','1','+','3','*']
Output: 9 ((2+1)*3)

Input: tokens=['4','13','5','/','+']
Output: 6 (4+(13/5))
stackmath
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

96 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features