Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
itsmepsk opened this issue Oct 20, 2020 · 1 comment
Open

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

itsmepsk opened this issue Oct 20, 2020 · 1 comment

Comments

@itsmepsk
Copy link

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

@sandeep21tw
Copy link

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!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants