package
Version:
v0.1.12
Opens a new window with list of versions in this module.
Published: Aug 27, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
type Heap
-
func (heap Heap[E, I]) First() (E, bool)
-
func (heap Heap[E, I]) Init()
-
func (heap Heap[E, I]) Last() (E, bool)
-
func (heap *Heap[E, I]) Pop() (E, bool)
-
func (heap *Heap[E, I]) Push(x E)
-
func (heap *Heap[E, I]) Put(val E)
-
func (heap *Heap[E, I]) Remove(i int) (E, bool)
-
func (heap Heap[E, I]) Size() int
-
type Interface
func (heap Heap[E, I]) First() (E, bool)
func (heap Heap[E, I]) Init()
func (heap *Heap[E, I]) Push(x E)
func (heap *Heap[E, I]) Put(val E)
type Interface[T any] interface {
~[]T
Less(i, j int) bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.