#199
Binary Tree Right Side View
medium · 69.6% accepted · 13,364 likes · top 78%
tree · depth-first search · breadth-first search · binary tree
Description
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.
Solution