- <init>
constructor.
- downheap
performs downheap operation for the heap to maintian its properties.
- get
returns the first element and removes it from the heap.
- getKthNearest
returns the kth nearest element or null if none there.
- noOfKthNearest
returns the number of k nearest.
- peek
peeks at the first element.
- put
adds the value to the heap.
- putBySubstitute
Puts an element by substituting it in place of the top most element.
- putKthNearest
Stores kth nearest elements (if there are more than one).
- size
returns the size of the heap.
- upheap
performs upheap operation for the heap to maintian its properties.