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

Method Len

top_k_frequent_elements_347/solution.go:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10type freqHeap []freqHeapVal
11
12func (h freqHeap) Len() int {
13 return len(h)
14}
15func (h freqHeap) Less(i, j int) bool {
16 return h[i].val > h[j].val
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected