Concept Flow - Check if Two Trees are Symmetric
Start with two root nodes
Check if both nodes are NULL?
Yes→Return True
No
Check if one node is NULL?
Yes→Return False
No
Check if node values are equal?
No→Return False
Yes
Recursively check left subtree of first with right subtree of second
Recursively check right subtree of first with left subtree of second
Return True if both recursive checks are True
End
The process compares two trees node-by-node, checking if they are mirror images by recursively comparing opposite children.