Update tree_level_traversal.py

This commit is contained in:
bt3gl 2023-07-29 17:45:56 -07:00 committed by GitHub
parent c64f3318f8
commit 9e938fa336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 []