Concept Flow - Check if Two Trees are Symmetric
Start with two root nodes
Are both nodes null?
Yes→Return True
No
Is one node null?
Yes→Return False
No
Are node values equal?
No→Return False
Yes
Check left subtree of first with right subtree of second
Check right subtree of first with left subtree of second
Return True if both checks True, else False
The flow compares two nodes step-by-step, checking nulls and values, then recursively checks opposite subtrees for symmetry.
