Red-Black Tree
A Red-Black tree is a self-balancing binary search tree that efficiently manages ordered data for quick storage and retrieval.
- Every node is either red or black.
- All NIL nodes are considered black.
- A red node does not have a red child.
- Every path from a given node to any of its descendant NIL nodes goes through the same number of black nodes.
Want to learn more?