diff --git a/problems/0102.二叉树的层序遍历.md b/problems/0102.二叉树的层序遍历.md index 39160911..45f7ee69 100644 --- a/problems/0102.二叉树的层序遍历.md +++ b/problems/0102.二叉树的层序遍历.md @@ -93,10 +93,10 @@ class Solution: if not root: return [] - quene = [root] + queue = [root] out_list = [] - while quene: + while queue: length = len(queue) in_list = [] for _ in range(length):