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

Method top

javascript/0703-kth-largest-element-in-a-stream.js:42–44  ·  view source on GitHub ↗
({ minHeap } = this)

Source from the content-addressed store, hash-verified

40 }
41
42 top({ minHeap } = this) {
43 return minHeap.front()?.element || 0;
44 }
45}

Callers 1

addMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected