Medium
Quiz
#199 Binary Tree Right Side View
APPROACH
Given the root of a binary tree, return the values of the nodes visible when the tree is viewed from the right side, ordered from top to bottom.
1 of 4
1:00
What is the optimal approach for this problem?