Invert a binary tree.
For example, given the following tree:
a
/ \
| |
b c
/ \ /
d e f
should become:
a
/ \
c b
\ / \
f e d
Invert a binary tree.
For example, given the following tree:
a
/ \
| |
b c
/ \ /
d e f
should become:
a
/ \
c b
\ / \
f e d
No posts