Concept Flow - Check if Two Trees are Symmetric
Start with root nodes of both trees
Compare values of current nodes
Return false - trees not symmetric
Recursively check left of Tree1 with right of Tree2
Recursively check right of Tree1 with left of Tree2
Both recursive calls true?
Yes
Return true - trees are symmetric
Start by comparing root nodes, then recursively check if left subtree of one tree matches right subtree of the other, and vice versa, returning true only if all pairs match.