Link: https://leetcode.com/problems/flip-equivalent-binary-trees/  Thought If 2 nodes are equivalent, either their left and right side match, or they are flipped match. So using a recursion(why recursion? It is a Tree!), and try to match each node pairs from root1 and root2. For each recursion level, I will first compare if current node pair have the same value. […]

Read More → 951 Flip Equivalent Binary Trees