Skip to content

Commit af86e50

Browse files
committed
1 parent edc17b6 commit af86e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: data_structures/binary_tree/binary_search_tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __reassign_nodes(self, node: Node, new_children: Node | None) -> None:
4040
else:
4141
node.parent.left = new_children
4242
else:
43-
self.root = None
43+
self.root = new_children
4444

4545
def is_right(self, node: Node) -> bool:
4646
if node.parent and node.parent.right:

0 commit comments

Comments
 (0)