* Finds the highest (rightmost) value in the binary search tree which is * less than or equal to the given value, or null if the given value * is lower than all elements of the tree. * * The complexity of this operation depends on the underlying structure of the * tree. Refer to the d
(value: T)
| 323 | * @returns The floor if it was found, or null if not. |
| 324 | */ |
| 325 | floor(value: T): T | null { |
| 326 | return this.#findNode(value, "lower")?.value ?? null; |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * Finds the lowest (leftmost) value in the binary search tree which is |
no test coverage detected