Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arnauddri/algorithms
/ Less
Method
Less
data-structures/priority-queue/priority_queue.go:20–22 ·
view source on GitHub ↗
(than heap.Item)
Source
from the content-addressed store, hash-verified
18
}
19
20
func
(x Item) Less(than heap.Item) bool {
21
return
x.Priority < than.(Item).Priority
22
}
23
24
type
PQ
struct
{
25
data heap.Heap
Callers
nothing calls this directly
Implementers
2
Heap
data-structures/heap/heap.go
Item
data-structures/priority-queue/priorit
Calls
no outgoing calls
Tested by
no test coverage detected