1612. Check If Two Expression Trees are Equivalent
Description
**Input:** root1 = [x], root2 = [x]
**Output:** true**Input:** root1 = [+,a,+,null,null,b,c], root2 = [+,+,a,b,c]
**Output:** true
**Explaination:** a + (b + c) == (b + c) + a**Input:** root1 = [+,a,+,null,null,b,c], root2 = [+,+,a,b,d]
**Output:** false
**Explaination:** a + (b + c) != (b + d) + aac
Last updated

