public class IJRedBlackBST extends IXXRedBlackBST
8+56*n(n为元素个数)
B=24+56*n
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
IJRedBlackBST.Node
8+25+对齐填充=40
B=56
|
root| 限定符 | 构造器和说明 |
|---|---|
protected |
IJRedBlackBST(int key,
long val) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected IJRedBlackBST.Node |
delete(IJRedBlackBST.Node h,
int key) |
void |
delete(int key) |
protected IJRedBlackBST.Node |
get(IJRedBlackBST.Node h,
int key) |
Long |
get(int key) |
static IJRedBlackBST |
of(int key) |
static IJRedBlackBST |
of(int key,
long val) |
protected IJRedBlackBST.Node |
put(IJRedBlackBST.Node h,
int key,
long val) |
void |
put(int key,
long val) |
ceil, ceil, floor, floor, key, keys, keys, keys, keys, keysGe, keysGe, keysLe, keysLe, size, size, sizeGe, sizeGe, sizeLe, sizeLebalance, deleteMax, deleteMax, deleteMin, deleteMin, depth, depth, flipColors, isEmpty, isLeaf, isRed, max, max, min, min, moveRedLeft, moveRedRight, root, rotateLeft, rotateRight, select, select, size, sizepublic static IJRedBlackBST of(int key, long val)
public static IJRedBlackBST of(int key)
public final void put(int key,
long val)
protected final IJRedBlackBST.Node put(IJRedBlackBST.Node h, int key, long val)
public final Long get(int key)
protected final IJRedBlackBST.Node get(IJRedBlackBST.Node h, int key)
public final void delete(int key)
protected final IJRedBlackBST.Node delete(IJRedBlackBST.Node h, int key)
Copyright © 2022. All rights reserved.