data-structures-algorithms-python icon indicating copy to clipboard operation
data-structures-algorithms-python copied to clipboard

Deletion from tree not happening when there is only one node.

Open itsmepsk opened this issue 5 years ago • 1 comments

Deletion not happening when there is only one node. The code should go like this: tree = tree.delete(17)

itsmepsk avatar Oct 20 '20 12:10 itsmepsk

Did you find the solution? i don't know the reason but i think this is something related to the fact we are returning None in the delete method. i don't understand how returning None is deleting the node in the first place!?

sandeep21tw avatar Apr 14 '22 07:04 sandeep21tw