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:
bc154f3
)
Update docs/ds/binary-heap.md
author
Asurx
<9735627709@qq.com>
Thu, 5 Sep 2019 13:13:27 +0000
(21:13 +0800)
committer
GitHub
<noreply@github.com>
Thu, 5 Sep 2019 13:13:27 +0000
(21:13 +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
f3c4e4a
..
ee46524
100644
(file)
--- a/
docs/ds/binary-heap.md
+++ b/
docs/ds/binary-heap.md
@@
-59,7
+59,7
@@
void up(x) {
x /= 2;
}
}
-void down(x) {
+void down(
int
x) {
while (x * 2 <= n) {
t = x * 2;
if (t + 1 <= n && h[t + 1] > h[t]) t++;