Red–black tree

A red–black tree is a binary search tree whose red and black node colors obey invariants that keep its height logarithmic in the number of nodes.

Connect