Binary Tree Right Side View
Understand and solve the interview question "Binary Tree Right Side View".
We'll cover the following...
Description
You are given a binary tree T
. Imagine you are standing to the right of it; you have to return the value of the nodes you can see from top to bottom.
You have to return the rightmost nodes on their respective levels in the form of an array.
Let’s discuss an example below:
Access this course and 1400+ top-rated courses and projects.