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

Method Empty

structure/tree/bstree.go:54–56  ·  view source on GitHub ↗

Empty determines the Binary-Search tree is empty

()

Source from the content-addressed store, hash-verified

52
53// Empty determines the Binary-Search tree is empty
54func (t *BinarySearch[T]) Empty() bool {
55 return t.Root == t._NIL
56}
57
58// Push a chain of Node's into the BinarySearch
59func (t *BinarySearch[T]) Push(keys ...T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected