mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-06-17 03:19:22 -04:00
Update bt_bfs.py
This commit is contained in:
parent
f1a8659193
commit
ba1a8755f0
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
# author: bt3gl
|
# author: bt3gl
|
||||||
|
|
||||||
|
|
||||||
def bfs_iterative(root) -> list:
|
def bfs(root) -> list:
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
queue = collections.deque([root])
|
queue = collections.deque([root])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue