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

Method findMaxNode

data_structures/_binary_search_node.ts:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 findMaxNode(): BinarySearchNode<T> {
46 let maxNode: BinarySearchNode<T> | null = this.right;
47 while (maxNode?.right) maxNode = maxNode.right;
48 return maxNode ?? this;
49 }
50
51 findSuccessorNode(): BinarySearchNode<T> | null {
52 if (this.right !== null) return this.right.findMinNode();

Callers 2

maxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected