Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryHeap ¶
type BinaryHeap[T any] struct { // contains filtered or unexported fields }
func New ¶
func New[T any](cmp compare.CompareFunc[T]) *BinaryHeap[T]
func (*BinaryHeap[T]) Len ¶
func (b *BinaryHeap[T]) Len() int
func (*BinaryHeap[T]) Peek ¶
func (b *BinaryHeap[T]) Peek() *T
func (*BinaryHeap[T]) Pop ¶
func (b *BinaryHeap[T]) Pop() *T
func (*BinaryHeap[T]) Push ¶
func (b *BinaryHeap[T]) Push(val T)
Click to show internal directories.
Click to hide internal directories.