Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriorityQueue ¶
type PriorityQueue[T any] interface { Enqueue(element T, priority int) (ok bool) Dequeue() (element T, ok bool) Peek() (element T, ok bool) Empty() bool Full() bool Size() int }
func NewPriorityQueue ¶
func NewPriorityQueue[T any](capacity int) (q PriorityQueue[T], err error)
Click to show internal directories.
Click to hide internal directories.