Skip to content

Commit b17ba61

Browse files
committed
Add heap sort.
1 parent 36bbfed commit b17ba61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/algorithms/sorting/heap-sort/__test__/HeapSort.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
} from '../../SortTester';
99

1010
// Complexity constants.
11+
// These numbers don't take into account up/dow heapifying of the heap.
12+
// Thus these numbers are higher in reality.
1113
const SORTED_ARRAY_VISITING_COUNT = 40;
1214
const NOT_SORTED_ARRAY_VISITING_COUNT = 40;
1315
const REVERSE_SORTED_ARRAY_VISITING_COUNT = 40;

0 commit comments

Comments
 (0)