MCPcopy Create free account
hub / github.com/denoland/std / higher

Method higher

data_structures/unstable_binary_search_tree.ts:352–354  ·  view source on GitHub ↗

* Finds the lowest (leftmost) value in the binary search tree which is * strictly greater than the given value, or null if the given value * is higher than or equal to all elements of the tree * * The complexity of this operation depends on the underlying structure of the * tree. Refe

(value: T)

Source from the content-addressed store, hash-verified

350 * @returns The higher value if it was found, or null if not.
351 */
352 higher(value: T): T | null {
353 return this.#findNode(value, "higher", false)?.value ?? null;
354 }
355
356 /**
357 * Finds the highest (rightmost) value in the binary search tree which is

Calls 1

#findNodeMethod · 0.95

Tested by

no test coverage detected