PostOrder traverses the tree in the following order Left --> Right --> Root
()
| 97 | |
| 98 | // PostOrder traverses the tree in the following order Left --> Right --> Root |
| 99 | func (t *BinarySearch[T]) PostOrder() []T { |
| 100 | traversal := make([]T, 0) |
| 101 | postOrderRecursive[T](t.Root, t._NIL, &traversal) |
| 102 | return traversal |
| 103 | } |
| 104 | |
| 105 | // LevelOrder returns the level order traversal of the tree |
| 106 | func (t *BinarySearch[T]) LevelOrder() []T { |
nothing calls this directly
no outgoing calls
no test coverage detected