Concept Flow - Check if Two Trees are Symmetric
Start with two root nodes
Compare values of both nodes
Check left subtree of 1 with right subtree of 2
Check right subtree of 1 with left subtree of 2
Both subtrees symmetric?
Return True
Start by comparing the root nodes of two trees. If their values match, recursively check if the left subtree of one matches the right subtree of the other and vice versa. Return true only if all corresponding pairs are symmetric.
