I am asked to write a recursive algorithm which checks if a binary tree has mirror symmetry in its structure (not values). For example:
1
/ \
/ \
/ \
3 5
/ \ / \
7 9 11 13
/ \
15 17
Has symmetrical structure. I would appreciate an expert eye to help me. Thanks in advance. I know how to check if the values are symmetric but not the actual structure.