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