Update 0111.二叉树的最小深度.md
This commit is contained in:
parent
ad5520612d
commit
46e1d0b907
|
|
@ -591,6 +591,7 @@ impl Solution {
|
|||
}
|
||||
|
||||
// 迭代
|
||||
// 需要 use std::collections::VecDeque;
|
||||
pub fn min_depth(root: Option<Rc<RefCell<TreeNode>>>) -> i32 {
|
||||
let mut res = 0;
|
||||
let mut queue = VecDeque::new();
|
||||
|
|
|
|||
Loading…
Reference in New Issue