Go to Latest
method RedBlackTree.prototype.insert
import { RedBlackTree } from "https://dotland.deno.dev/std@0.146.0/collections/red_black_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