Documentation ¶
Index ¶
- type Heap
- func (heap Heap[E, I]) First() (E, bool)
- func (heap Heap[E, I]) Init()
- func (heap Heap[E, I]) Last() (E, bool)
- func (heap *Heap[E, I]) Pop() (E, bool)
- func (heap *Heap[E, I]) Push(x E)
- func (heap *Heap[E, I]) Put(val E)
- func (heap *Heap[E, I]) Remove(i int) (E, bool)
- func (heap Heap[E, I]) Size() int
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heap ¶
func NewFromArr ¶
Click to show internal directories.
Click to hide internal directories.