Skip to content

Commit b065964

Browse files
authored
Update diff_views_of_binary_tree.py
1 parent 92cfae7 commit b065964

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

data_structures/binary_tree/diff_views_of_binary_tree.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def depth_first_search(
106106
depth_first_search(root, 0, left_view)
107107
return left_view
108108

109-
110109
def binary_tree_top_side_view(root: TreeNode) -> list[int]:
111110
r"""
112111
Function returns the top side view of binary tree.
@@ -173,8 +172,6 @@ def binary_tree_bottom_side_view(root: TreeNode) -> list[int]:
173172
>>> binary_tree_bottom_side_view(None)
174173
[]
175174
"""
176-
from collections import defaultdict
177-
178175
def breadth_first_search(root: TreeNode, bottom_view: list[int]) -> None:
179176
"""
180177
A breadth first search traversal with defaultdict ds to append

0 commit comments

Comments
 (0)