* Finds the highest (rightmost) value in the binary search tree which is * strictly less than the given value, or null if the given value * is lower than or equal to all elements of the tree * * The complexity of this operation depends on the underlying structure of the * tree. Refer
(value: T)
| 377 | * @returns The lower value if it was found, or null if not. |
| 378 | */ |
| 379 | lower(value: T): T | null { |
| 380 | return this.#findNode(value, "lower", false)?.value ?? null; |
| 381 | } |
| 382 | } |
no test coverage detected