package
Version:
v0.0.0-...-3948e75
Opens a new window with list of versions in this module.
Published: Dec 15, 2020
License: BSD-3-Clause
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
¶
MinInts is a min-heap of integers.
NewMinInts builds an empty integer min-heap.
Empty returns whether the heap is empty.
Len returns the number of elements in the heap.
Min returns the min value without removing it.
Nums returns all the elements in the heap in no particular order.
Pop the min element from the heap.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.