The balance factor is something used to keep balance in a AVL Tree.
Balance
- A node with is left heavy
- A node with is right heavy
- A node with is balanced
The balance factor is something used to keep balance in a AVL Tree.
Balance=Height(Left Subtreee)−Height(Right Subtree)