mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-23 08:51:31 -04:00
Update tree_level_traversal.py
This commit is contained in:
parent
c64f3318f8
commit
9e938fa336
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
# (i.e., from left to right, level by level).
|
||||
|
||||
|
||||
def levelOrder(root: Optional[TreeNode]) -> list[list[int]]:
|
||||
def level_order(root: Optional[TreeNode]) -> list[list[int]]:
|
||||
|
||||
if root is None:
|
||||
return []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue