Binary Tree Right Side View
Try to solve the Binary Tree Right Side View problem.
We'll cover the following
1 of 3
2 of 3
3 of 3
Understand the problem#
Let’s take a moment to make sure you’ve correctly understood the problem. The quiz below helps you check if you’re solving the correct problem:
Binary Tree Right Side View
1
What will be the output of the following tree?
______ 1 ______
| |
2 _ _ 3
| |
_ 4 _ 5
| |
6 7
A)
[1, 3, 5, 7]
B)
[1, 3, 5]
C)
[1, 4, 5, 7]
D)
[1, 2, 3, 5]
Question 1 of 30 attempted
Figure it out!#
We have a game for you to play. Rearrange the logical building blocks to develop a clearer understanding of how to solve this problem.
Try it yourself#
Implement your solution in the following coding playground.
Python
usercode > main.py
Binary Tree Right Side View
Solution: Maximum Depth of Binary Tree
Solution: Binary Tree Right Side View