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

Method Get

structure/tree/bstree.go:76–78  ·  view source on GitHub ↗

Get a Node from the Binary-Search Tree

(key T)

Source from the content-addressed store, hash-verified

74
75// Get a Node from the Binary-Search Tree
76func (t *BinarySearch[T]) Get(key T) (Node[T], bool) {
77 return searchTreeHelper[T](t.Root, t._NIL, key)
78}
79
80// Has Determines the tree has the node of Key
81func (t *BinarySearch[T]) Has(key T) bool {

Callers 1

DeleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected