Delete a Node from the AVL Tree
(key T)
| 72 | |
| 73 | // Delete a Node from the AVL Tree |
| 74 | func (avl *AVL[T]) Delete(key T) bool { |
| 75 | if !avl.Has(key) { |
| 76 | return false |
| 77 | } |
| 78 | |
| 79 | avl.Root = avl.deleteHelper(avl.Root, key) |
| 80 | return true |
| 81 | } |
| 82 | |
| 83 | // Get a Node from the AVL Tree |
| 84 | func (avl *AVL[T]) Get(key T) (Node[T], bool) { |
nothing calls this directly
no test coverage detected