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

Binary Search Tree deletion #1

Open
mentekid opened this issue Aug 19, 2015 · 0 comments
Open

Binary Search Tree deletion #1

mentekid opened this issue Aug 19, 2015 · 0 comments
Assignees
Labels

Comments

@mentekid
Copy link
Owner

BST.delete() doesn't work properly for all test cases - it can't delete the root node. This is because the function is recursive and each node looks for the key in its children, and the root doesn't have a parent.

At this point, there is an else case which prints a warning message and stops the function. This should be fixed.

@mentekid mentekid added the bug label Aug 19, 2015
@mentekid mentekid self-assigned this Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant