mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-23 08:51:31 -04:00
Update trie_bfs.py
This commit is contained in:
parent
bd2fb7fb45
commit
761e86705f
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ def level_orders(root):
|
|||
|
||||
while queue:
|
||||
level = []
|
||||
|
||||
for _ in range(len(queue)):
|
||||
node = queue.popleft()
|
||||
level.append(node.val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue