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

Enabled root deletion for zero and one child roots #2

Merged
merged 2 commits into from Dec 26, 2014

Conversation

imgemp
Copy link

@imgemp imgemp commented Dec 11, 2014

Before, if your tree was lopsided or only consisted of the single root node, deleting the node would do nothing. This fixes this so the root node is actually deleted (and replaced if need be). I added a test case to test_binary_tree.py.

laurentluce added a commit that referenced this pull request Dec 26, 2014
Enabled root deletion for zero and one child roots
@laurentluce laurentluce merged commit a476b38 into laurentluce:master Dec 26, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants