Unverified Commit a55d3653 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 71e0e865
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;