MCPcopy Create free account
hub / github.com/course-dasheng/fe-algorithm / peek

Method peek

interview/heap.js:46–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 peek(){
47 // 获取堆顶元素
48 return this.arr[1]
49 }
50 left(k){
51 return k*2
52 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected