Depth returns the calculated depth of a Red-Black tree
()
| 125 | |
| 126 | // Depth returns the calculated depth of a Red-Black tree |
| 127 | func (t *RB[T]) Depth() int { |
| 128 | return calculateDepth[T](t.Root, t._NIL, 0) |
| 129 | } |
| 130 | |
| 131 | // Max returns the Max value of the tree |
| 132 | func (t *RB[T]) Max() (T, bool) { |
nothing calls this directly
no outgoing calls
no test coverage detected