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

Method max

data_structures/binary_search_tree.ts:533–535  ·  view source on GitHub ↗

* Retrieve the highest (right most) value in the binary search tree, or null * if the tree is empty. * * The complexity of this operation depends on the underlying structure of the * tree. Refer to the documentation of the structure itself for more details. * * @example Finding the

()

Source from the content-addressed store, hash-verified

531 * @returns The maximum value in the binary search tree, or null if the tree is empty.
532 */
533 max(): T | null {
534 return this.#root ? this.#root.findMaxNode().value : null;
535 }
536
537 /**
538 * Remove all values from the binary search tree.

Callers 15

#resetTtlMethod · 0.80
copyFunction · 0.80
indexOfNeedleFunction · 0.80
between_test.tsFile · 0.80
serveFileFunction · 0.80
executeMethod · 0.80
handlePromptSelectFunction · 0.80
clampFunction · 0.80
compareIdentifierFunction · 0.80

Calls 1

findMaxNodeMethod · 0.80

Tested by

no test coverage detected