MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Get

Method Get

structure/tree/rbtree.go:85–87  ·  view source on GitHub ↗

Get a Node from the Red-Black Tree

(key T)

Source from the content-addressed store, hash-verified

83
84// Get a Node from the Red-Black Tree
85func (t *RB[T]) Get(key T) (Node[T], bool) {
86 return searchTreeHelper[T](t.Root, t._NIL, key)
87}
88
89// Has Determines the tree has the node of Key
90func (t *RB[T]) Has(key T) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected