Advanced data structuresExplained
Red-Black Tree
A BST balanced with colour rules and fewer rotations.
Time
O(log n)
Extra space
O(n)
Use it for
Standard library maps and sets.
A BST balanced with colour rules and fewer rotations.
Time
O(log n)
Extra space
O(n)
Use it for
Standard library maps and sets.