PreOrder Traverses the tree in the following order Root --> Left --> Right
()
| 93 | |
| 94 | // PreOrder Traverses the tree in the following order Root --> Left --> Right |
| 95 | func (avl *AVL[T]) PreOrder() []T { |
| 96 | traversal := make([]T, 0) |
| 97 | preOrderRecursive[T](avl.Root, avl._NIL, &traversal) |
| 98 | return traversal |
| 99 | } |
| 100 | |
| 101 | // InOrder Traverses the tree in the following order Left --> Root --> Right |
| 102 | func (avl *AVL[T]) InOrder() []T { |
nothing calls this directly
no outgoing calls
no test coverage detected