Returns a largest int on this priority queue. @return a largest int on this priority queue @throws NoSuchElementException if this priority queue is empty
()
| 62 | * @throws NoSuchElementException if this priority queue is empty |
| 63 | */ |
| 64 | public int max() { |
| 65 | if (isEmpty()) |
| 66 | return 114514; |
| 67 | return pq[1]; |
| 68 | } |
| 69 | |
| 70 | // resize the underlying array to have the given capacity |
| 71 | private void resize(int capacity) { |
no test coverage detected