Search
⌘K

Leetcode 772. Basic Calculator III

Evaluate a string arithmetic expression containing integers, +, -, *, /, parentheses and unary signs, respecting operator precedence and parentheses. The challenge is to parse and compute the result (typically via recursive-descent parsing or stack-based evaluation) while handling multi-digit numbers and spaces.

Asked at:

Google

Google

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early June, 2025

Meta

Staff

Early December, 2024

Google

Google

Junior

Hard question related to simplifying mathematical expression using stack and recursion

Comments

Your account is free and you can post anonymously if you choose.