Evaluate a math expression with precedence, parentheses and unary operators.
Unlock detailed company stats for this questionUpgrade
Design an expression evaluator. Given a mathematical expression containing +, -, *, /, parentheses, multi-digit integers, spaces and unary + / -, return the integer result respecting standard operator precedence. Example: -7 + 5 * 8 - 5 / 4 + (5 + 4). Focus: parsing, operator precedence, nested parentheses, unary operators, multi-digit numbers and edge cases.
Format · Technical interview.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
