Merge pull request #641 from Steve0x2a/patch-1

修改0102二叉树的层序遍历Python代码
This commit is contained in:
程序员Carl 2021-08-24 09:23:50 +08:00 committed by GitHub
commit cf6edd67cd
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):