Problem 1612 · Medium

Check If Two Expression Trees are Equivalent

Two expression trees built only from addition and variables are equivalent when their variables occur with the same multiplicities.

Open the interactive visualisation