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

Method Empty

structure/tree/rbtree.go:67–69  ·  view source on GitHub ↗

Empty determines the Red-Black tree is empty

()

Source from the content-addressed store, hash-verified

65
66// Empty determines the Red-Black tree is empty
67func (t *RB[T]) Empty() bool {
68 return t.Root == t._NIL
69}
70
71// Push a chain of Node's into the Red-Black Tree
72func (t *RB[T]) Push(keys ...T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected