Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heap ¶
type Heap[T any] interface { Insert(value T) // Insert or update an element in the heap Extract() (T, error) // Extract the top element Peek() (T, error) // Get the top element without removing it Remove(value T) error // Remove an element from the heap Len() int // Get the size of the heap }
Heap interface exposing public methods.
Click to show internal directories.
Click to hide internal directories.