Question: what is the difference between avl tree and bst?
Answer: 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.