(output = (value) => console.log(value))
| 52 | |
| 53 | // prints the heap |
| 54 | print(output = (value) => console.log(value)) { |
| 55 | output(this.heap.slice(1)) |
| 56 | } |
| 57 | |
| 58 | // heap reverse can be done by performing swapping the first |
| 59 | // element with the last, removing the last element to |
no test coverage detected