MCPcopy Create free account
hub / github.com/austingebauer/go-leetcode / Swap

Method Swap

find_median_from_data_stream_295/solution.go:34–36  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

32 return h[i] < h[j]
33}
34func (h MinHeap) Swap(i, j int) {
35 h[i], h[j] = h[j], h[i]
36}
37func (h *MinHeap) Push(x interface{}) {
38 *h = append(*h, x.(int))
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected