We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9eccbab commit 7376a1eCopy full SHA for 7376a1e
1 file changed
题解template.md
@@ -62,9 +62,11 @@ dict4 = defaultdict(list)
62
```
63
64
# 优先队列
65
-## 大根堆
+## 小顶堆
66
```python
67
pq = []
68
heappush(pq, 3)
69
v = heappop(pq)
70
71
+## 大顶堆
72
+push进负的值,pop出来的时候再取反
0 commit comments