Medium

Quiz

#199 Binary Tree Right Side View

APPROACH

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.

1 of 4

What is the optimal approach for this problem?