* Retrieve the lowest (left most) value in the binary search tree, or null if * the tree is empty. * * The complexity of this operation depends on the underlying structure of the * tree. Refer to the documentation of the structure itself for more details. * * @example Finding the m
()
| 530 | * @returns The minimum value in the binary search tree, or null if the tree is empty. |
| 531 | */ |
| 532 | min(): T | null { |
| 533 | return this.#root ? this.#root.findMinNode().value : null; |
| 534 | } |
| 535 | |
| 536 | /** |
| 537 | * Retrieve the highest (right most) value in the binary search tree, or null |
no test coverage detected