Deprecated
Use https://deno.land/std/collections/rb_tree.ts instead
import { RBTree } from "https://deno.land/x/collections@0.12.1/trees/rb_tree.ts";
A red-black tree. The values are in ascending order by default, using JavaScript's built in comparison operators to sort the values.
Methods
private
removeFixup(parent: RBNode<T> | null, current: RBNode<T> | null)Adds the value to the binary search tree if it does not already exist in it. Returns true if successful.
Static Methods
Creates a new red-black tree from an array like or iterable object.