OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71e0e86
)
Update docs/ds/binary-heap.md
author
Asurx
<9735627709@qq.com>
Thu, 5 Sep 2019 13:15:35 +0000
(21:15 +0800)
committer
GitHub
<noreply@github.com>
Thu, 5 Sep 2019 13:15:35 +0000
(21:15 +0800)
Co-Authored-By: ouuan <y___o___u@126.com>
docs/ds/binary-heap.md
patch
|
blob
|
history
diff --git
a/docs/ds/binary-heap.md
b/docs/ds/binary-heap.md
index
ee46524
..
6d36347
100644
(file)
--- a/
docs/ds/binary-heap.md
+++ b/
docs/ds/binary-heap.md
@@
-53,7
+53,7
@@
auhor: HeRaNO, Xeonacid
参考代码:
```cpp
-void up(x) {
+void up(
int
x) {
while (x > 1 && h[x] > h[x / 2]) {
swap(h[x], h[x / 2]);
x /= 2;