mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 21:24:53 +08:00
refactor: Replace 'poll' with 'pop' in Heap (#416)
This commit is contained in:
@ -76,7 +76,7 @@ func TestMyHeap(t *testing.T) {
|
||||
maxHeap.print()
|
||||
|
||||
/* 堆顶元素出堆 */
|
||||
peek = maxHeap.poll()
|
||||
peek = maxHeap.pop()
|
||||
fmt.Printf("\n堆顶元素 %d 出堆后\n", peek)
|
||||
maxHeap.print()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user