Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/arnauddri/algorithms
/ Len
Method
Len
data-structures/priority-queue/priority_queue.go:40–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
}
39
40
func
(pq *PQ) Len() int {
41
return
pq.data.Len()
42
}
43
44
func
(pq *PQ) Insert(el Item) {
45
pq.data.Insert(heap.Item(el))
Callers
3
ChangePriority
Method · 0.95
TestMaxPriorityQueue
Function · 0.45
TestMinPriorityQueue
Function · 0.45
Calls
no outgoing calls
Tested by
2
TestMaxPriorityQueue
Function · 0.36
TestMinPriorityQueue
Function · 0.36