Mental Model
Two trees are symmetric if one is a mirror image of the other. We compare nodes in opposite positions step-by-step.
Analogy: Imagine folding a paper with a tree drawn on each side. If both sides match perfectly when folded, the trees are symmetric.
Tree1 Tree2 (mirror)
1 1
/ \ / \
2 3 3 2
/ \
4 4
Pointers compare nodes across trees:
Tree1: 1 -> 2 -> 4
Tree2: 1 -> 3 -> 4
Compare Tree1.left with Tree2.right and Tree1.right with Tree2.left