Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyHeap = errors.New("empty heap") ErrInvalidIndex = errors.New("index does not exists in the heap") )
Functions ¶
This section is empty.
Types ¶
type Heap ¶
func (*Heap[T]) RemoveIndex ¶
func (*Heap[T]) ValuesSorted ¶
func (h *Heap[T]) ValuesSorted() []T
Click to show internal directories.
Click to hide internal directories.