K - the type of keys maintained by this heappublic interface DoubleEndedHeap<K> extends Heap<K>
| Modifier and Type | Method and Description |
|---|---|
K |
deleteMax()
Delete and return an element with the maximum key.
|
K |
findMax()
Find an element with the maximum key.
|
K findMax()
NoSuchElementException - if the heap is emptyK deleteMax()
NoSuchElementException - if the heap is emptyCopyright © 2018. All rights reserved.