data-structure-typed/src/interfaces/abstract-binary-tree.ts

9 lines
375 B
TypeScript
Raw Normal View History

import {BinaryTreeNodeKey} from '../types';
2023-09-22 02:43:16 +00:00
import {AbstractBinaryTreeNode} from '../data-structures';
export interface IAbstractBinaryTreeNode<T, NEIGHBOR extends IAbstractBinaryTreeNode<T, NEIGHBOR>> {}
export interface IAbstractBinaryTree<N extends AbstractBinaryTreeNode<N['val'], N>> {
2023-10-10 11:55:52 +00:00
createNode(key: BinaryTreeNodeKey, val?: N['val'], count?: number): N | null;
}