refactor: Replace 'poll' with 'pop' in Heap (#416)

This commit is contained in:
Yudong Jin
2023-03-13 22:31:05 +08:00
committed by GitHub
parent 8aebbaad21
commit 28aacccf44
27 changed files with 91 additions and 152 deletions

View File

@ -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()