Red-Black Trees

What is a Red-Black Tree?

A Red-Black Tree is a type of self-balancing binary search tree. It ensures that the tree remains approximately balanced, which keeps operations like insertion, deletion, and search efficient — all in O(log n) time.

Rules of a RBT

For more information on Red-Black Trees, click on this line