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

Method Min

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

Source from the content-addressed store, hash-verified

228}
229
230func (node *BTreeNode[T]) Min() T {
231 if node.isLeaf {
232 return node.keys[0]
233 }
234 return node.children[0].Min()
235}
236
237func (node *BTreeNode[T]) Max() T {
238 if node.isLeaf {

Callers

nothing calls this directly

Calls 1

MinMethod · 0.65

Tested by

no test coverage detected