Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arnauddri/algorithms
/ NewMax
Function
NewMax
data-structures/priority-queue/priority_queue.go:28–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
26
}
27
28
func
NewMax() (q *PQ) {
29
return
&PQ{
30
data: *heap.NewMax(),
31
}
32
}
33
34
func
NewMin() (q *PQ) {
35
return
&PQ{
Callers
2
TestMaxPriorityQueue
Function · 0.70
TestChangePriority
Function · 0.70
Calls
no outgoing calls
Tested by
2
TestMaxPriorityQueue
Function · 0.56
TestChangePriority
Function · 0.56