mirror of
https://github.com/zrwusa/data-structure-typed.git
synced 2024-11-13 01:04:03 +00:00
9 lines
375 B
TypeScript
9 lines
375 B
TypeScript
import {BinaryTreeNodeKey} from '../types';
|
|
import {AbstractBinaryTreeNode} from '../data-structures';
|
|
|
|
export interface IAbstractBinaryTreeNode<T, NEIGHBOR extends IAbstractBinaryTreeNode<T, NEIGHBOR>> {}
|
|
|
|
export interface IAbstractBinaryTree<N extends AbstractBinaryTreeNode<N['val'], N>> {
|
|
createNode(key: BinaryTreeNodeKey, val?: N['val'], count?: number): N | null;
|
|
}
|