Documentation
¶
Index ¶
- type Heap
- func NewMaxHeap[T cmp.Ordered](initialItems []T) *Heap[T]
- func NewMaxHeapCmp[T any](initialItems []T, checkIsLess func(smaller, bigger T) bool) *Heap[T]
- func NewMinHeap[T cmp.Ordered](initialItems []T) *Heap[T]
- func NewMinHeapCmp[T any](initialItems []T, checkIsLess func(smaller, bigger T) bool) *Heap[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heap ¶
type Heap[T any] struct { // contains filtered or unexported fields }
func NewMaxHeap ¶
func NewMaxHeapCmp ¶
func NewMinHeap ¶
func NewMinHeapCmp ¶
Click to show internal directories.
Click to hide internal directories.