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

Method Push

structure/tree/rbtree.go:72–76  ·  view source on GitHub ↗

Push a chain of Node's into the Red-Black Tree

(keys ...T)

Source from the content-addressed store, hash-verified

70
71// Push a chain of Node's into the Red-Black Tree
72func (t *RB[T]) Push(keys ...T) {
73 for _, key := range keys {
74 t.pushHelper(t.Root, key)
75 }
76}
77
78// Delete a node of Red-Black Tree
79// Returns false if the node does not exist, otherwise returns true.

Callers

nothing calls this directly

Calls 1

pushHelperMethod · 0.95

Tested by

no test coverage detected