NewAVL creates a novel AVL tree
()
| 52 | |
| 53 | // NewAVL creates a novel AVL tree |
| 54 | func NewAVL[T constraints.Ordered]() *AVL[T] { |
| 55 | return &AVL[T]{ |
| 56 | Root: nil, |
| 57 | _NIL: nil, |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | // Empty determines the AVL tree is empty |
| 62 | func (avl *AVL[T]) Empty() bool { |
nothing calls this directly
no outgoing calls
no test coverage detected