Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Symmetric Tree
Bookmark
Input
Symmetric Tree
Not Symmetric
Same Values, Not Mirror
Four Levels
Custom
tree
=
[1, 2, 2, 3, 4, 4, 3]
mirror
1
2
2
3
4
4
3
checks
isSymmetric(root)
: mirror image of itself?
algo
master
.
io
Step:
Start: is the tree a mirror image of itself?
0 / 15
Input
Symmetric Tree
Not Symmetric
Same Values, Not Mirror
Four Levels
Custom
tree
=
[1, 2, 2, 3, 4, 4, 3]
0 / 15
mirror
1
2
2
3
4
4
3
checks
isSymmetric(root)
: mirror image of itself?
algo
master
.
io
Step:
Start: is the tree a mirror image of itself?