OSDN Git Service

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

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