UNPKG

red-black-tree-node

Version:

The algorithm of a self-balancing tree is used (Red-Black tree)

9 lines (8 loc) 239 B
export declare class RedBlackTree { private _root; constructor(key?: string, value?: any); insert(key: string, value: any): void; find(key: string): any | undefined; private findLastNode; private compare; }