Binary Tree Right Side View

Try to solve the Binary Tree Right Side View problem.


You are given a root of a binary tree that has n number of nodes. You have to return the right-side view in the form of a list.

A right-side view of a binary tree is the data of the nodes that are visible when the tree is viewed from the right side.


  • 00 \leq n 100\leq 100
  • 100-100 \leq 100\leq 100


Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy