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

Method Empty

structure/tree/avl.go:62–64  ·  view source on GitHub ↗

Empty determines the AVL tree is empty

()

Source from the content-addressed store, hash-verified

60
61// Empty determines the AVL tree is empty
62func (avl *AVL[T]) Empty() bool {
63 return avl.Root == avl._NIL
64}
65
66// Push a chain of Node's into the AVL Tree
67func (avl *AVL[T]) Push(keys ...T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected