Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% 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
- Dual Extremes Queuehard
- Longest Match Tokenizermedium
- Connected Crop Allocationmedium
- [CodeSignal] Maximum Zero-Sum Tripletsmedium
- [CodeSignal] Coin Table Gameeasy
- Running Tests With Failing Pairsmedium
- Minimum Boxing Areahard
- Unpainted Segmentsmedium
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.