Update bt_bfs.py

This commit is contained in:
bt3gl 2023-08-08 14:17:34 -07:00 committed by GitHub
parent f1a8659193
commit ba1a8755f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
# author: bt3gl
def bfs_iterative(root) -> list:
def bfs(root) -> list:
result = []
queue = collections.deque([root])