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

Method ceiling

data_structures/unstable_binary_search_tree.ts:298–300  ·  view source on GitHub ↗

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

(value: T)

Source from the content-addressed store, hash-verified

296 * @returns The ceiling if it was found, or null if not.
297 */
298 ceiling(value: T): T | null {
299 return this.#findNode(value, "higher")?.value ?? null;
300 }
301
302 /**
303 * Finds the highest (rightmost) value in the binary search tree which is

Calls 1

#findNodeMethod · 0.95

Tested by

no test coverage detected