MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / top

Method top

javascript/0295-find-median-from-data-stream.js:49–51  ·  view source on GitHub ↗
(heap)

Source from the content-addressed store, hash-verified

47 }
48
49 top(heap) {
50 return heap.front()?.element || 0;
51 }
52}

Callers 3

getHeapMethod · 0.95
findMedianMethod · 0.95
averageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected