* 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
()
| 510 | * @returns The minimum value in the binary search tree, or null if the tree is empty. |
| 511 | */ |
| 512 | min(): T | null { |
| 513 | return this.#root ? this.#root.findMinNode().value : null; |
| 514 | } |
| 515 | |
| 516 | /** |
| 517 | * Retrieve the highest (right most) value in the binary search tree, or null |
no test coverage detected