package
Version:
v0.0.0-...-de70c8a
Opens a new window with list of versions in this module.
Published: Sep 20, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package maxheap implements max heap.
MaxHeap is a max heap type.
New returns a new max heap.
Len implements the heap interface.
Less implements the heap interface.
func (m *MaxHeap) Pop() interface{}
Pop implements the heap interface.
func (m *MaxHeap) Push(element interface{})
Push implements the heap interface.
Swap implements the heap interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.