Skip to content

Commit 10c8c04

Browse files
authored
Update 0102.二叉树的层序遍历.md
1 parent 1498333 commit 10c8c04

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)