mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 00:43:04 +08:00
@ -460,7 +460,7 @@ var levelOrder = function (root) {
|
||||
for (let i = 0; i < n; i++) {
|
||||
let node = queue.shift();
|
||||
temp.push(node.val);
|
||||
node.left &&queue.push(node.left);
|
||||
node.left && queue.push(node.left);
|
||||
node.right && queue.push(node.right);
|
||||
}
|
||||
res.push(temp);
|
||||
|
Reference in New Issue
Block a user