Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
5
type
MaxHeap []int
6
7
func
(h MaxHeap) Len() int {
8
return
len(h)
9
}
10
func
(h MaxHeap) Less(i, j int) bool {
11
return
h[i] > h[j]
12
}
Callers
2
AddNum
Method · 0.45
FindMedian
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected