修改0102二叉树的层序遍历Python代码

原Python代码的队列变量名写错,无法运行。
This commit is contained in:
Steve0x2a 2021-08-23 15:31:43 +08:00 committed by GitHub
parent acf1a54f8d
commit c619a05139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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):