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

Method Push

structure/tree/bstree.go:59–63  ·  view source on GitHub ↗

Push a chain of Node's into the BinarySearch

(keys ...T)

Source from the content-addressed store, hash-verified

57
58// Push a chain of Node's into the BinarySearch
59func (t *BinarySearch[T]) Push(keys ...T) {
60 for _, key := range keys {
61 t.pushHelper(t.Root, key)
62 }
63}
64
65// Delete removes the node of val
66func (t *BinarySearch[T]) Delete(val T) bool {

Callers

nothing calls this directly

Calls 1

pushHelperMethod · 0.95

Tested by

no test coverage detected