Skip to content

Commit bd58aa2

Browse files
Merge pull request youngyangyang04#620 from leiyaguang/patch-1
Update 0102.二叉树的层序遍历.md
2 parents dfaa1b9 + 10c8c04 commit bd58aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/0102.二叉树的层序遍历.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ var largestValues = function(root) {
11291129
queue.push(root);
11301130
while(root!==null&&queue.length){
11311131
//设置max初始值就是队列的第一个元素
1132-
let max=queue[0];
1132+
let max=queue[0].val;
11331133
let length=queue.length;
11341134
while(length--){
11351135
let node = queue.shift();

0 commit comments

Comments
 (0)