Winter SalePremium questions, over 25% offUnlock all premium questions for over 25% off
Expression Simplifier
Hard
Given an algebraic expression string containing single lowercase-letter variables, the operators + and -, and parentheses ( and ), simplify the expression by removing all parentheses and correctly distributing signs.
The simplified expression must preserve the correct mathematical value. Terms should appear in the same relative order as the original expression, with the sign of each term adjusted according to how many layers of negation surround it. ...
More Google interview questions
- Interval Coverage Counterhard
- Largest Island Perimetermedium
- Path Routermedium
- Daily Branch Pruningmedium
- Frequency Merge Treemedium
- Dual Extremes Queuehard
- Longest Match Tokenizermedium
- [CodeSignal] Maximum Zero-Sum Tripletsmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.