From 070071e687072ab3d0eb8c086b61898a7d8fb6e1 Mon Sep 17 00:00:00 2001 From: marina <138340846+bt3gl-cryptographer@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:20:29 -0700 Subject: [PATCH] Update and rename tree_bfs.py to bt_bfs.py --- trees/{tree_bfs.py => bt_bfs.py} | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) rename trees/{tree_bfs.py => bt_bfs.py} (77%) diff --git a/trees/tree_bfs.py b/trees/bt_bfs.py similarity index 77% rename from trees/tree_bfs.py rename to trees/bt_bfs.py index 6317eff..df01479 100644 --- a/trees/tree_bfs.py +++ b/trees/bt_bfs.py @@ -2,11 +2,8 @@ # -*- coding: utf-8 -*- # author: bt3gl -# Given the root of a binary tree, return the level order traversal of its nodes' values. -# (i.e., from left to right, level by level). - -def level_order(root: Optional[TreeNode]) -> list[list[int]]: +def level_order(root: Optional[Node]) -> list[list[int]]: if root is None: return []