The original solution can't work out the following examples correctly:
((a+b)) -> a+b
(a+b)+c -> a+b+c
((a+b)+c)+d -> a+b+c+d
etc.
We don't need a property for if the expression is wrapped or not. Just write the wrapped expression (if applicable) into expr and cleanExpr if not, then it's done!
Always remember a+(b+c) does not equals a+b+c since they have completely different calulation order.
The original solution can't work out the following examples correctly:
We don't need a property for if the expression is wrapped or not. Just write the wrapped expression (if applicable) into expr and cleanExpr if not, then it's done!
Always remember a+(b+c) does not equals a+b+c since they have completely different calulation order.