AVL Tree
We'll cover the following...
AVL Tree is a self-balancing BST where for any node - the difference in height of the left and the right subtree can not be more than .
Therefore, the strucwture of the AVL tree node also stores the height for each node. The structure would look like this:
struct Node {
int key;
Node *left;
Node *right;
int height;
};
...
Access this course and 1400+ top-rated courses and projects.