MCPcopy
hub / github.com/TheAlgorithms/Go / Comparable

Interface Comparable

sort/heapsort.go:117–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117type Comparable interface {
118 Idx() int
119 More(any) bool
120}
121
122func HeapSort[T constraints.Ordered](slice []T) []T {
123 N := len(slice)

Callers 5

HeapifyMethod · 0.65
UpdateMethod · 0.65
updateidxMethod · 0.65
moreMethod · 0.65
heapifyUpMethod · 0.65

Implementers 1

Itemgraph/dijkstra.go

Calls

no outgoing calls

Tested by

no test coverage detected