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

Method Less

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

Source from the content-addressed store, hash-verified

29 return len(h)
30}
31func (h MinHeap) Less(i, j int) bool {
32 return h[i] < h[j]
33}
34func (h MinHeap) Swap(i, j int) {
35 h[i], h[j] = h[j], h[i]
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected