@euriklis/ds-architect
Version:
`@euriklis/ds-architect` is a modular and extensible library that provides a rich ecosystem for graph and network-based data structures. Designed with both academic rigor and practical application in mind, this library offers powerful graph algorithms and
6 lines (5 loc) • 612 B
TypeScript
import type { BST } from "..";
import type { BSTNodeValueComparisonCallbackType } from "../../../Types";
import type { BSTDataNode } from "../../DataNode";
export declare const BinarySearchNode: <T extends any, AbstractBSTDataNode extends BSTDataNode>(tree: BST<T>, node: AbstractBSTDataNode | null, callback: (node: AbstractBSTDataNode, tree?: BST<T>) => -1 | 0 | 1) => AbstractBSTDataNode | null;
export declare const BinarySearch: <T extends any, AbstractBSTDataNode extends BSTDataNode>(node: AbstractBSTDataNode | null, value: T, callback: BSTNodeValueComparisonCallbackType) => AbstractBSTDataNode | null;