Skip to content

Commit d916fb1

Browse files
committed
moved heap-sort to algorithms/sorting
1 parent 2ca9447 commit d916fb1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/js/algorithms/sorting/heap-sort.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultCompare, swap } from '../util';
1+
import { defaultCompare, swap } from '../../util';
22

33
function heapify(array, index, heapSize, compareFn) {
44
let largest = index;

src/ts/algorithms/sorting/heap-sort.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultCompare, ICompareFunction, swap } from '../util';
1+
import { defaultCompare, ICompareFunction, swap } from '../../util';
22

33
function heapify(array: any[], index: number, heapSize: number, compareFn: ICompareFunction<any>) {
44
let largest = index;

test/ts/data-structures/heap.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'mocha';
22
// import { expect } from 'chai';
33
import { MinHeap } from '../../../src/ts/index';
44
import { MaxHeap } from '../../../src/ts/data-structures/heap';
5-
import heapSort from '../../../src/ts/sorting/heap-sort';
5+
import heapSort from '../../../src/ts/algorithms/sorting/heap-sort';
66

77
describe('Heap', () => {
88
let heap: MinHeap<number>;

0 commit comments

Comments
 (0)