MCPcopy
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
106func (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

siftUpMethod · 0.95
siftDownMethod · 0.95

Calls 1

LessMethod · 0.65

Tested by

no test coverage detected