AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than one for all nodes. The above tree is AVL because differences between heights of left and right subtrees for every node is less than or equal to 1. (~www.geeksforgeeks.org)
- my_tree.insert(element)
- my_tree.find(element)
- my_tree.top()
- my_tree.height()
- my_tree.balance() <- only in AVL
- list(my_tree)