py-bst icon indicating copy to clipboard operation
py-bst copied to clipboard

Implements Binary Search Trees, AVL Trees, Splay Trees, and Red Black Trees in Python with plotting.

Results 5 py-bst issues
Sort by recently updated
recently updated
newest added

Hi I found that levelorder( ) in bstree.py has some errors. File "E:\Python27\lib\site-packages\pybst\bstree.py", line 164, in levelorder if visit.left: AttributeError: 'NoneType' object has no attribute 'left'

Hi, just wondering, can we make this functional?

When deleting the root (node.key == self.Root.key), the code doesn't set the new root's parent to None, which leads to unexpected behaviors. This is easy to fix by setting self.Root.parent...