← Questions

Basic calculator

0
MetaMicrosoftCodingLast asked Aug 2026

Evaluate an arithmetic expression string with non-negative integers, +, -, *, / (integer division toward zero) and spaces, respecting operator precedence, without eval. State the grammar you accept before you write the evaluator.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding