Roblox phone interview question
Anonymous User
2860

Simplify a given algebraic string of characters, ‘+’, ‘-‘ operators and parentheses. Output the simplified string without parentheses.
Examples:
Input : "a-(b+c)" output "a-b-c"
Input : "a-(a-b)" output "b"

Any idea?

Comments (9)