Add merge sort.

This commit is contained in:
Oleksii Trekhleb
2018-04-14 12:09:25 +03:00
parent ed2abde623
commit 21ce9719d9

View File

@ -22,9 +22,9 @@ describe('MergeSort', () => {
SortTester.testSortWithCustomComparator(BubbleSort);
});
// it('should do stable sorting', () => {
// SortTester.testSortStability(BubbleSort);
// });
it('should do stable sorting', () => {
SortTester.testSortStability(BubbleSort);
});
it('should visit EQUAL array element specified number of times', () => {
SortTester.testAlgorithmTimeComplexity(