Avl.insert
Insert an element into the tree
Usage
insert(item: Any)
Parameters:
element
Item to be inserted into the Avl tree
Example
from jellybeans.structures import Avltree = Avl(lambda x,y: len(x) >= len(y))tree.insert("abcd")tree.insert("a")tree.insert("aaaaaaa")tree.insert("aac")print(tree.in_order()) # ['a', 'aac', 'abcd', 'aaaaaaa']