MCPcopy
hub / github.com/austingebauer/go-leetcode / Len

Method Len

find_median_from_data_stream_295/solution.go:7–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5type MaxHeap []int
6
7func (h MaxHeap) Len() int {
8 return len(h)
9}
10func (h MaxHeap) Less(i, j int) bool {
11 return h[i] > h[j]
12}

Callers 2

AddNumMethod · 0.45
FindMedianMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected