mirror of
https://github.com/zrwusa/data-structure-typed.git
synced 2024-11-14 09:24:05 +00:00
10 lines
376 B
TypeScript
10 lines
376 B
TypeScript
import {RBTreeNode} from '../data-structures';
|
|
import {IBST, IBSTNode} from './bst';
|
|
import {BinaryTreeNodeId} from '../types';
|
|
|
|
export type IRBTreeNode<T, NEIGHBOR extends IRBTreeNode<T, NEIGHBOR>> = IBSTNode<T, NEIGHBOR>;
|
|
|
|
export interface IRBTree<N extends RBTreeNode<N['val'], N>> extends IBST<N> {
|
|
createNode(id: BinaryTreeNodeId, val?: N['val'], count?: number): N;
|
|
}
|