PostOrder traverses the tree in the following order Left --> Right --> Root
()
| 105 | |
| 106 | // PostOrder traverses the tree in the following order Left --> Right --> Root |
| 107 | func (avl *AVL[T]) PostOrder() []T { |
| 108 | traversal := make([]T, 0) |
| 109 | postOrderRecursive[T](avl.Root, avl._NIL, &traversal) |
| 110 | return traversal |
| 111 | } |
| 112 | |
| 113 | // LevelOrder returns the level order traversal of the tree |
| 114 | func (avl *AVL[T]) LevelOrder() []T { |
nothing calls this directly
no outgoing calls
no test coverage detected