diff --git a/problems/算法模板.md b/problems/算法模板.md index 853816d2..69ebb361 100644 --- a/problems/算法模板.md +++ b/problems/算法模板.md @@ -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);