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

a bug for binaryTree remove method #8

Open
412799755 opened this issue Jun 4, 2019 · 0 comments
Open

a bug for binaryTree remove method #8

412799755 opened this issue Jun 4, 2019 · 0 comments

Comments

@412799755
Copy link

var tree = new BinaryTree();
tree.insert(20);
tree.insert(10);
tree.insert(15);
tree.insert(16);
tree.insert(5);
tree.insert(8);
tree.insert(7);
tree.insert(25);
tree.remove(10);
if you remove the node 10,node 7 will be removed unexpectedly

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

1 participant