Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriorityQueue ¶
type PriorityQueue[T interface{ Less(other T) bool }] struct { // contains filtered or unexported fields }
func (*PriorityQueue[T]) Len ¶
func (pq *PriorityQueue[T]) Len() int
func (*PriorityQueue[T]) Pop ¶
func (pq *PriorityQueue[T]) Pop() T
func (*PriorityQueue[T]) Push ¶
func (pq *PriorityQueue[T]) Push(x T)
func (*PriorityQueue[T]) Remove ¶
func (pq *PriorityQueue[T]) Remove(i int) T
Click to show internal directories.
Click to hide internal directories.