Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/austingebauer/go-leetcode
/ Pop
Method
Pop
find_median_from_data_stream_295/solution.go:19–24 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
*h = append(*h, x.(int))
18
}
19
func
(h *MaxHeap) Pop()
interface
{} {
20
v := *h
21
p := v[len(v)-1]
22
*h = v[0 : len(v)-1]
23
return
p
24
}
25
26
type
MinHeap []int
27
Callers
1
AddNum
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected