* Checks if the heap is empty. * @returns {boolean} - True if the heap is empty, false otherwise.
()
| 47 | * @returns {boolean} - True if the heap is empty, false otherwise. |
| 48 | */ |
| 49 | empty() { |
| 50 | return this.size() === 0 |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Bubbles up a value from the specified index to maintain the heap property. |
no test coverage detected