Unverified Commit 71e0e865 authored by Asurx's avatar Asurx Committed by GitHub
Browse files

Update docs/ds/binary-heap.md



Co-Authored-By: default avatarouuan <y___o___u@126.com>
parent bc154f30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++;