Constructors
constructor
- new InsertionSort<T>(comparator: (a: T, b: T) => number): InsertionSort<T>
-
Type parameters
Parameters
-
comparator: (a: T, b: T) => number
-
-
Parameters
Returns number
Methods
Private sortUpLowToHigh
- sortUpLowToHigh(list: T[], i: number): void
https://www.dropbox.com/sh/be1lrxk0h9dhdx7/AAD8G5xdEBdEeTJOi4LnGXePa?dl=0&preview=InsertionSort.java Very fast for almost sorted data