Dsa
Stack
Easy
Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation (RPN). Valid operators are '+', '-', '*', and '/'. Each operand may be an integer or another expression. Return the result of the evaluation.
Example Input:
2 1 + 3 *
Example Output:
9
Key concepts
stackexpression evaluation
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now