MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / Max

Method Max

structure/tree/btree.go:237–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235}
236
237func (node *BTreeNode[T]) Max() T {
238 if node.isLeaf {
239 return node.keys[node.numKeys-1]
240 }
241 return node.children[node.numKeys].Max()
242}
243
244func (node *BTreeNode[T]) Delete(tree *BTree[T], key T) {
245 node.Verify(tree)

Callers

nothing calls this directly

Calls 1

MaxMethod · 0.65

Tested by

no test coverage detected