removeMax.MaxHeap {Containers}R Documentation

Remove the Root Element of a Max-Heap

Description

This method removes and returns the largest element of a MaxHeap.

Details

largest = aMaxHeap$removeMax()

Value

removeMax removes and returns the root element of the MaxHeap in question, or returns NULL if the MaxHeap is empty.

Author(s)

John Hughes


[Package Containers version 1.2 Index]