public interface MaxHeap<T extends java.lang.Comparable<T>>
Modifier and Type | Method and Description |
---|---|
T |
deleteMax() |
int |
getSize() |
void |
insert(T v) |
void insert(T v)
v
- the value to be inserted into this binary MaxHeap
T deleteMax() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if this MaxHeap was already empty
int getSize()