peekMax.MaxHeap {Containers}R Documentation

Inspect the Root of a Max-Heap

Description

This method returns the root element of a MaxHeap.

Details

largest = aMaxHeap$peekMax()

Value

peekMax returns the root element of the MaxHeap in question, or NULL if the MaxHeap is empty.

Author(s)

John Hughes


[Package Containers version 1.2 Index]