Skip to main content

Binary Search Tree

Create a Binary Search Tree.

Usage

src/sample/binarysearchtree.ts
import { BinarySearchTree } from 'athro';

let bst = new BinarySearchTree();

Available Methods

Methods available for BinarySearchTree.

MethodsDescriptionSyntax
insertAdd item to the bstbst.insert(value)
isPresentCheck if a value is present in the bstbst.isPresent()