//
pkg.gl
Category
github.com/twmb/algoimpl
go
tree
heap
package
0.0.0-20170717182524-076353e90b94
Repository:
https://github.com/twmb/algoimpl.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
0
Files
61 SLOC
#
Functions
Init
Creates a max heap out of an unorganized Interface collection.
Pop
Removes and returns the maximum of the heap and reorganizes.
Push
This function will push a new value into a priority queue.
Remove
Removes and returns the element at index i.
#
Interfaces
Interface
Any type that implements Interface may be used as a max-tree.