Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/arnauddri/algorithms
/ Less
Method
Less
data-structures/heap/heap.go:106–112 ·
view source on GitHub ↗
(a, b Item)
Source
from the content-addressed store, hash-verified
104
}
105
106
func
(h *Heap) Less(a, b Item) bool {
107
if
h.min {
108
return
a.Less(b)
109
}
else
{
110
return
b.Less(a)
111
}
112
}
Callers
2
siftUp
Method · 0.95
siftDown
Method · 0.95
Calls
1
Less
Method · 0.65
Tested by
no test coverage detected