typescript-algorithms-and-datastructures
Version:
Useful algorithms and Data structures written in typescript.
14 lines (13 loc) • 393 B
TypeScript
export declare class IBinaryTreeNode<T> {
left: IBinaryTreeNode<T>;
right: IBinaryTreeNode<T>;
value: T;
parent: IBinaryTreeNode<T>;
hasLeftChild: () => boolean;
hasRightChild: () => boolean;
isLeftChild: () => boolean;
isRightChild: () => boolean;
isRoot: () => boolean;
min: () => IBinaryTreeNode<T>;
max: () => IBinaryTreeNode<T>;
}