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

Method Less

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

Source from the content-addressed store, hash-verified

8 return len(h)
9}
10func (h MaxHeap) Less(i, j int) bool {
11 return h[i] > h[j]
12}
13func (h MaxHeap) Swap(i, j int) {
14 h[i], h[j] = h[j], h[i]
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected