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