MCPcopy 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
20func (x Item) Less(than heap.Item) bool {
21 return x.Priority < than.(Item).Priority
22}
23
24type PQ struct {
25 data heap.Heap

Callers

nothing calls this directly

Implementers 2

Heapdata-structures/heap/heap.go
Itemdata-structures/priority-queue/priorit

Calls

no outgoing calls

Tested by

no test coverage detected