1 | import { SkipListNode } from "./SkipListNode";
|
2 | export declare class SkipList<T> {
|
3 | private compareKey?;
|
4 | private level;
|
5 | private count;
|
6 | private head;
|
7 | constructor(compareKey?: keyof T);
|
8 | readonly Level: number;
|
9 | readonly Count: number;
|
10 | readonly Head: SkipListNode<T>;
|
11 | isEmpty(): boolean;
|
12 | private randomLevel;
|
13 | findNode(item: any): SkipListNode<T>;
|
14 | insert(item: T): this;
|
15 | remove(item: any): this;
|
16 | getSkipTables(): any[];
|
17 | toString(): any;
|
18 | private compare;
|
19 | private findUpdateNodes;
|
20 | private insertNode;
|
21 | }
|