public class RedBlackTree
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RedBlackTree.Node |
| Modifier and Type | Method and Description |
|---|---|
int |
blackHeight()
Number of black nodes on any simple path from, but not including, a node x down to a leaf
|
boolean |
delete(int value)
Time complexity: O(logn)
|
void |
insert(int value)
Time complexity: O(logn)
|
void |
insertFixup(RedBlackTree.Node x)
Time complexity: O(logn)
|
boolean |
search(int value)
Time complexity: O(logn)
|
public void insert(int value)
public void insertFixup(RedBlackTree.Node x)
public boolean search(int value)
public boolean delete(int value)
public int blackHeight()