Loading...
The Postfix Processor
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid, senior
Problem
A formula evaluation engine receives arithmetic expressions in postfix (Reverse Polish) notation and must compute the result. Given a list of string tokens representing a valid postfix expression, return the integer result. Supported operators are +, -, *, and / (integer division truncated toward zero).
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.