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

Method floor

data_structures/unstable_binary_search_tree.ts:325–327  ·  view source on GitHub ↗

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

(value: T)

Source from the content-addressed store, hash-verified

323 * @returns The floor if it was found, or null if not.
324 */
325 floor(value: T): T | null {
326 return this.#findNode(value, "lower")?.value ?? null;
327 }
328
329 /**
330 * Finds the lowest (leftmost) value in the binary search tree which is

Callers 15

equals32BitFunction · 0.80
shuffleFunction · 0.80
seeded_test.tsFile · 0.80
randomIntegerBetweenFunction · 0.80
randomFunction · 0.80
transformMethod · 0.80
encodeBase58Function · 0.80
decodeBase58Function · 0.80
verifyMessageFunction · 0.80
serializeDateFunction · 0.80

Calls 1

#findNodeMethod · 0.95

Tested by

no test coverage detected