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

Method Get

structure/tree/avl.go:84–86  ·  view source on GitHub ↗

Get a Node from the AVL Tree

(key T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected