提交 a9c58a5d 编写于 作者: GreyZeng's avatar GreyZeng

update

上级 cf89f609
......@@ -55,7 +55,7 @@ public class MaxHeap {
private void heapify() {
int index = 0;
int left = index * 2 + 1;
int left = 1; // index * 2 + 1;
while (left < heapSize) {
int largest // bigger index
= left + 1 < heapSize // right child exist
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册