Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaxHeap ¶
type MaxHeap struct { Comparator base.CompareFunc // contains filtered or unexported fields }
func New ¶
func New(Comparator base.CompareFunc) *MaxHeap
func (*MaxHeap) Peek ¶
func (h *MaxHeap) Peek() interface{}
Peek returns the top element of heap, or nil if heap is empty.
Click to show internal directories.
Click to hide internal directories.