Method ADT.Priority_queue()->peek()


Method peek

mixed peek()

Description

Returns the item on top of the priority queue (which is also the element with the smallest priority value) without removing it.