Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Binary Tree Right Side View
Bookmark
Input
Example 1
Example 2
Complete Tree
Left Skewed
Custom
tree
=
[1, 2, 3, null, 5, null, 4]
1
2
3
5
4
L0
L1
L2
view
queue
result
keep the last node of every level
algo
master
.
io
Step:
Start: find the right side view of the binary tree
0 / 27
Input
Example 1
Example 2
Complete Tree
Left Skewed
Custom
tree
=
[1, 2, 3, null, 5, null, 4]
0 / 27
1
2
3
5
4
L0
L1
L2
view
queue
result
keep the last node of every level
algo
master
.
io
Step:
Start: find the right side view of the binary tree