K - the type of keys maintained by this heapV - the type of values maintained by this heappublic interface DoubleEndedValueHeap<K,V> extends DoubleEndedHeap<K>
| Modifier and Type | Method and Description |
|---|---|
V |
findMaxValue()
Find the value of an element with the maximum key.
|
V |
findMinValue()
Find the value of an element with the minimum key.
|
void |
insert(K key,
V value)
Insert an element into the heap.
|
deleteMax, findMaxvoid insert(K key, V value)
key - the key to insertvalue - the value to insertV findMinValue()
NoSuchElementException - if the heap is emptyV findMaxValue()
NoSuchElementException - if the heap is emptyCopyright © 2018. All rights reserved.