peekMax.MaxHeap {Containers} | R Documentation |
This method returns the root element of a MaxHeap
.
largest = aMaxHeap$peekMax()
peekMax
returns the root element of the MaxHeap
in question, or NULL
if the MaxHeap
is empty.
John Hughes