Unverified Commit efb1e70e authored by 夜轮_NachtgeistW's avatar 夜轮_NachtgeistW Committed by GitHub
Browse files

Update heap-sort.md

parent 6454ba39
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -12,8 +12,9 @@

```cpp
//这里 floor 函数将实数映射到最小的前导整数。
iParent(i) = floor((i - 1) / 2)
    iLeftChild(i) = 2 * i + 1 iRightChild(i) = 2 * i + 2
iParent(i) = floor((i - 1) / 2);
iLeftChild(i) = 2 * i + 1;
iRightChild(i) = 2 * i + 2;
```

## 性质