Skip to content

Commit f3b08a9

Browse files
committed
Create README - LeetHub
1 parent 5a1ef23 commit f3b08a9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<h2><a href="https://leetcode.com/problems/minimum-depth-of-binary-tree/">111. Minimum Depth of Binary Tree</a></h2><h3>Easy</h3><hr><div><p>Given a binary tree, find its minimum depth.</p>
2+
3+
<p>The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.</p>
4+
5+
<p><strong>Note:</strong>&nbsp;A leaf is a node with no children.</p>
6+
7+
<p>&nbsp;</p>
8+
<p><strong>Example 1:</strong></p>
9+
<img alt="" src="https://assets.leetcode.com/uploads/2020/10/12/ex_depth.jpg" style="width: 432px; height: 302px;">
10+
<pre><strong>Input:</strong> root = [3,9,20,null,null,15,7]
11+
<strong>Output:</strong> 2
12+
</pre>
13+
14+
<p><strong>Example 2:</strong></p>
15+
16+
<pre><strong>Input:</strong> root = [2,null,3,null,4,null,5,null,6]
17+
<strong>Output:</strong> 5
18+
</pre>
19+
20+
<p>&nbsp;</p>
21+
<p><strong>Constraints:</strong></p>
22+
23+
<ul>
24+
<li>The number of nodes in the tree is in the range <code>[0, 10<sup>5</sup>]</code>.</li>
25+
<li><code>-1000 &lt;= Node.val &lt;= 1000</code></li>
26+
</ul>
27+
</div>

0 commit comments

Comments
 (0)