package
Version:
v0.0.0-...-88e3535
Opens a new window with list of versions in this module.
Published: May 20, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Treap struct {
Root *Node
}
Treap implementation.
New returns an initialized Treap.
Clear removes all items from the heap.
DeleteMin deletes the minimum value and returns it.
FindMin finds the minimum value.
Init initializes or clears the Treap
Insert adds an item into the heap.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.