Home
Related Problems
Binary Tree Right Side View
Medium
Trees
•
Grind 75
NeetCode 150
Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
Constraints:
The number of nodes in the tree is in the range [0, 100]
-100 <= Node.val <= 100
Show Test Cases
Show Solution