Skip to content

Commit bd53d4f

Browse files
Create README - LeetHub
1 parent fb178d5 commit bd53d4f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

binary-tree-right-side-view/README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<h2>199. Binary Tree Right Side View</h2><h3>Medium</h3><hr><div><p>Given the <code>root</code> of a binary tree, imagine yourself standing on the <strong>right side</strong> of it, return <em>the values of the nodes you can see ordered from top to bottom</em>.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong>Example 1:</strong></p>
5+
<img alt="" src="https://assets.leetcode.com/uploads/2021/02/14/tree.jpg" style="width: 401px; height: 301px;">
6+
<pre><strong>Input:</strong> root = [1,2,3,null,5,null,4]
7+
<strong>Output:</strong> [1,3,4]
8+
</pre>
9+
10+
<p><strong>Example 2:</strong></p>
11+
12+
<pre><strong>Input:</strong> root = [1,null,3]
13+
<strong>Output:</strong> [1,3]
14+
</pre>
15+
16+
<p><strong>Example 3:</strong></p>
17+
18+
<pre><strong>Input:</strong> root = []
19+
<strong>Output:</strong> []
20+
</pre>
21+
22+
<p>&nbsp;</p>
23+
<p><strong>Constraints:</strong></p>
24+
25+
<ul>
26+
<li>The number of nodes in the tree is in the range <code>[0, 100]</code>.</li>
27+
<li><code>-100 &lt;= Node.val &lt;= 100</code></li>
28+
</ul>
29+
</div>

0 commit comments

Comments
 (0)