mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update bt_bfs.py
This commit is contained in:
parent
f1a8659193
commit
ba1a8755f0
@ -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…
x
Reference in New Issue
Block a user