Binary Tree Right Side View at Meta

Medium69.5% acceptance

This problem has 87.5% frequency at Meta.

Problem 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_.

Read full problem and hints

Topics

Also asked at 15 companies


More Meta Questions

View all Meta questions