Red-Black Trees
What is a Red-Black Tree?
A Red-Black Tree is a self-balancing binary search tree.
It uses red and black nodes to keep the tree balanced
during insertions and deletions.
Important Properties
- Every node is either red or black.
- The root of the tree is black.
- Red nodes cannot have red children.
- Every path from a node to a null leaf has
the same number of black nodes.
Example Tree
More Information
Learn more about
Red-Black Trees
.