Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryHeap ¶
type BinaryHeap[T constraints.Ordered] struct { // contains filtered or unexported fields }
func NewBinaryHeap ¶
func NewBinaryHeap[T constraints.Ordered]() *BinaryHeap[T]
func (*BinaryHeap[T]) Add ¶
func (bh *BinaryHeap[T]) Add(val T)
func (*BinaryHeap[T]) Clear ¶
func (bh *BinaryHeap[T]) Clear()
func (*BinaryHeap[T]) IsEmpty ¶
func (bh *BinaryHeap[T]) IsEmpty() bool
func (*BinaryHeap[T]) Peek ¶
func (bh *BinaryHeap[T]) Peek() (T, error)
func (*BinaryHeap[T]) Poll ¶
func (bh *BinaryHeap[T]) Poll() (T, error)
func (*BinaryHeap[T]) Print ¶
func (bh *BinaryHeap[T]) Print()
func (*BinaryHeap[T]) Size ¶
func (bh *BinaryHeap[T]) Size() int
Click to show internal directories.
Click to hide internal directories.