Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/greyireland/algorithm-pattern
/ swap
Function
swap
src/sort/heap_sort.go:45–47 ·
view source on GitHub ↗
(a []int, i, j int)
Source
from the content-addressed store, hash-verified
43
}
44
}
45
func
swap(a []int, i, j int) {
46
a[i], a[j] = a[j], a[i]
47
}
Callers
2
HeapSort
Function · 0.85
sink
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected