-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added README.md file for Find Bottom Left Tree Value
- Loading branch information
1 parent
e2443c6
commit 7d0f5fb
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<h2><a href="https://leetcode.com/problems/find-bottom-left-tree-value">Find Bottom Left Tree Value</a></h2> <img src='https://img.shields.io/badge/Difficulty-Medium-orange' alt='Difficulty: Medium' /><hr><p>Given the <code>root</code> of a binary tree, return the leftmost value in the last row of the tree.</p> | ||
|
||
<p> </p> | ||
<p><strong class="example">Example 1:</strong></p> | ||
<img alt="" src="https://assets.leetcode.com/uploads/2020/12/14/tree1.jpg" style="width: 302px; height: 182px;" /> | ||
<pre> | ||
<strong>Input:</strong> root = [2,1,3] | ||
<strong>Output:</strong> 1 | ||
</pre> | ||
|
||
<p><strong class="example">Example 2:</strong></p> | ||
<img alt="" src="https://assets.leetcode.com/uploads/2020/12/14/tree2.jpg" style="width: 432px; height: 421px;" /> | ||
<pre> | ||
<strong>Input:</strong> root = [1,2,3,4,null,5,6,null,null,7] | ||
<strong>Output:</strong> 7 | ||
</pre> | ||
|
||
<p> </p> | ||
<p><strong>Constraints:</strong></p> | ||
|
||
<ul> | ||
<li>The number of nodes in the tree is in the range <code>[1, 10<sup>4</sup>]</code>.</li> | ||
<li><code>-2<sup>31</sup> <= Node.val <= 2<sup>31</sup> - 1</code></li> | ||
</ul> |