1 | export declare class Sort {
|
2 | static selectionSort<T>(arr: Array<T>, key?: keyof T): T[];
|
3 | static insertSort<T>(arr: Array<T>, key?: keyof T): T[];
|
4 | static bubbleSort<T>(arr: Array<T>, key?: keyof T): T[];
|
5 | static shellSort<T>(arr: Array<T>, key?: keyof T): T[];
|
6 | static mergeSort<T>(arr: Array<T>, key?: keyof T): T[];
|
7 | private static merge;
|
8 | static quickSort<T>(arr: Array<T>, key?: keyof T): T[];
|
9 | private static compare;
|
10 | private static swap;
|
11 | }
|