Evaluate a string like "1 - (2 + 3) + 4" with +, −, parentheses and unary minus — without eval. LeetCode 224, asked in a Waymo phone screen.
Evaluate a string like "1 - (2 + 3) + 4" with +, −, parentheses and unary minus — without eval. LeetCode 224, asked in a Waymo phone screen.
The discussion opens with the full question.