package
Version:
v0.0.0-...-63ace11
Opens a new window with list of versions in this module.
Published: Jun 3, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
PQ implements heap.Interface and holds entries.
func (pq *PQ) Pop() interface{}
Pop 从 pq 中取出最优先的 entry
func (pq *PQ) Push(x interface{})
Push 往 pq 中放 entry
func (pq PQ) Swap(i, j int)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.