laurentluce/python-algorithms — pull request #2 by imgemp (2014-12-11 19:47:32+00:00)
Title: Enabled root deletion for zero and one child roots

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.