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

Method lower

data_structures/unstable_binary_search_tree.ts:379–381  ·  view source on GitHub ↗

* Finds the highest (rightmost) value in the binary search tree which is * strictly less than the given value, or null if the given value * is lower than or equal to all elements of the tree * * The complexity of this operation depends on the underlying structure of the * tree. Refer

(value: T)

Source from the content-addressed store, hash-verified

377 * @returns The lower value if it was found, or null if not.
378 */
379 lower(value: T): T | null {
380 return this.#findNode(value, "lower", false)?.value ?? null;
381 }
382}

Calls 1

#findNodeMethod · 0.95

Tested by

no test coverage detected