Skip to content

Commit 7ee3dd3

Browse files
committed
Merge pull request algorithm-visualizer#8 from thinker3197/master
Fix minor bug
2 parents c091633 + a20d18b commit 7ee3dd3

File tree

1 file changed

+2
-1
lines changed
  • algorithm/sorting/heap/basic

1 file changed

+2
-1
lines changed

algorithm/sorting/heap/basic/code.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ function heapSort(array, size) {
1111
temp = array[0];
1212
array[0] = array[j];
1313
array[j] = temp;
14-
14+
15+
tracer._notify(0, j);
1516
tracer._select(j);
1617

1718
heapify(array, j, 0);

0 commit comments

Comments
 (0)