Left‑Leaning Red‑Black Tree (2-3 tree mode)

Presets: Random size:
Bulk (final result only):
Step through:
Speed
Step overview appears here once you run an operation.
100%
Click a node to put its key in the box · click between nodes to get a key that belongs there
Ready. Insert a key or choose a preset.
Java source (Sedgewick & Wayne, RedBlackBST) — active code highlighted
The highlighted method and line correspond to the step currently shown above.
Unit tests — JavaScript port vs. Java reference semantics
Not run yet.