Skip to content

Commit bd3549d

Browse files
committed
Create README - LeetHub
1 parent 51517b4 commit bd3549d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<h2>  Binary Tree Inorder Traversal</h2><hr><div><p>Given the <code>root</code> of a binary tree, return <em>the inorder traversal of its nodes' values</em>.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong>Example 1:</strong></p>
5+
<img alt="" src="https://assets.leetcode.com/uploads/2020/09/15/inorder_1.jpg" style="width: 125px; height: 200px;">
6+
<pre><strong>Input:</strong> root = [1,null,2,3]
7+
<strong>Output:</strong> [1,3,2]
8+
</pre>
9+
10+
<p><strong>Example 2:</strong></p>
11+
12+
<pre><strong>Input:</strong> root = []
13+
<strong>Output:</strong> []
14+
</pre>
15+
16+
<p><strong>Example 3:</strong></p>
17+
18+
<pre><strong>Input:</strong> root = [1]
19+
<strong>Output:</strong> [1]
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+
30+
<p>&nbsp;</p>
31+
<strong>Follow up:</strong> Recursive solution is trivial, could you do it iteratively?</div>

0 commit comments

Comments
 (0)