OSDN Git Service

Update docs/ds/binary-heap.md
authorAsurx <9735627709@qq.com>
Thu, 5 Sep 2019 13:13:27 +0000 (21:13 +0800)
committerGitHub <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

index f3c4e4a..ee46524 100644 (file)
@@ -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++;