Skip to content

Commit 62651e1

Browse files
committed
Fixed issue #31
1 parent 9e84343 commit 62651e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygorithm/data_structures/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def min_val_bst_node(self, BSTNode):
157157
def delete(self, data):
158158
''' For deleting the BSTNode '''
159159
if self is None:
160-
return root
160+
return None
161161

162162
# if current BSTNode's data is less than that of root BSTNode, then only search in left subtree else right subtree
163163
if data < self.data:

0 commit comments

Comments
 (0)