Depth returns the calculated depth of a binary search tree
()
| 116 | |
| 117 | // Depth returns the calculated depth of a binary search tree |
| 118 | func (t *BinarySearch[T]) Depth() int { |
| 119 | return calculateDepth[T](t.Root, t._NIL, 0) |
| 120 | } |
| 121 | |
| 122 | // Max returns the Max value of the tree |
| 123 | func (t *BinarySearch[T]) Max() (T, bool) { |
nothing calls this directly
no outgoing calls
no test coverage detected