Valid Mathematical Expression
Given a string containing only parentheses (), {}, [], digits 0-9, and operators +, -, *, /, determine if it represents a valid mathematical expression.
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late November, 2025
Amazon
Mid-level
Given a string containing only (, {, [, ), },], 0–9, +, -, * , /, determine if it’s a valid mathematical expression.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.