* Finds the lowest (leftmost) value in the binary search tree which is * greater than or equal to the given value, or null if the given value * is higher than all elements of the tree. * * The complexity of this operation depends on the underlying structure of the * tree. Refer to the
(value: T)
| 296 | * @returns The ceiling if it was found, or null if not. |
| 297 | */ |
| 298 | ceiling(value: T): T | null { |
| 299 | return this.#findNode(value, "higher")?.value ?? null; |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * Finds the highest (rightmost) value in the binary search tree which is |
no test coverage detected