* Check if a value exists in the binary search tree. * * 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 values in the tree * ```ts * import { BinarySear
(value: T)
| 485 | * @returns The value if it was found, or null if not found. |
| 486 | */ |
| 487 | find(value: T): T | null { |
| 488 | return this.#findNode(value)?.value ?? null; |
| 489 | } |
| 490 | |
| 491 | /** |
| 492 | * Retrieve the lowest (left most) value in the binary search tree, or null if |