mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 19:44:45 +08:00
Update 0513.找树左下角的值.md
This commit is contained in:
@ -605,7 +605,7 @@ impl Solution {
|
|||||||
while !queue.is_empty() {
|
while !queue.is_empty() {
|
||||||
for i in 0..queue.len() {
|
for i in 0..queue.len() {
|
||||||
let node = queue.pop_front().unwrap().unwrap();
|
let node = queue.pop_front().unwrap().unwrap();
|
||||||
if i == 1 {
|
if i == 0 {
|
||||||
res = node.borrow().val;
|
res = node.borrow().val;
|
||||||
}
|
}
|
||||||
if node.borrow().left.is_some() {
|
if node.borrow().left.is_some() {
|
||||||
|
Reference in New Issue
Block a user