0513. Find Bottom Left Tree Value

https://leetcode.com/problems/find-bottom-left-tree-value

Description

Given the root of a binary tree, return the leftmost value in the last row of the tree.

Example 1:

Example 2:

Constraints:

  • The number of nodes in the tree is in the range [1, 104].

  • -231 <= Node.val <= 231 - 1

ac

Last updated

Was this helpful?