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

Method Push

structure/tree/avl.go:67–71  ·  view source on GitHub ↗

Push a chain of Node's into the AVL Tree

(keys ...T)

Source from the content-addressed store, hash-verified

65
66// Push a chain of Node's into the AVL Tree
67func (avl *AVL[T]) Push(keys ...T) {
68 for _, k := range keys {
69 avl.Root = avl.pushHelper(avl.Root, k)
70 }
71}
72
73// Delete a Node from the AVL Tree
74func (avl *AVL[T]) Delete(key T) bool {

Callers

nothing calls this directly

Calls 1

pushHelperMethod · 0.95

Tested by

no test coverage detected