Skip to main content
Latest
method BinarySearchTree.prototype.insert
import { BinarySearchTree } from "https://deno.land/std@0.224.0/data_structures/binary_search_tree.ts";

Adds the value to the binary search tree if it does not already exist in it. Returns true if successful.

Parameters

value: T

Returns

boolean