513 Find Bottom Left Tree Value
Given a binary tree, find the leftmost value in the last row of the tree.
Example 1:
Example 2:
Note:You may assume the tree (i.e., the given root node) is not NULL.
用bfs做层遍历,然后把每一层开始的node的value记下来就ok了。
Last updated
Given a binary tree, find the leftmost value in the last row of the tree.
Example 1:
Example 2:
Note:You may assume the tree (i.e., the given root node) is not NULL.
用bfs做层遍历,然后把每一层开始的node的value记下来就ok了。
Last updated