From 71e0e8652d4e6c9bb4af0290997a9e00a8b7bf27 Mon Sep 17 00:00:00 2001 From: Asurx <9735627709@qq.com> Date: Thu, 5 Sep 2019 21:13:27 +0800 Subject: [PATCH] Update docs/ds/binary-heap.md Co-Authored-By: ouuan --- docs/ds/binary-heap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ds/binary-heap.md b/docs/ds/binary-heap.md index f3c4e4a3..ee46524e 100644 --- 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++; -- 2.11.0