public int[] TestInsertionSort(int[] array, int system, int flag) { IComparer comparer = new NumberSystemComparator(system, flag); ArrayExtension.InsertionSort(array, comparer); return(array); }
public int[] TestBubbleSort(int[] array, int system, int flag, int start, int end, int step) { IComparer comparer = new NumberSystemComparator(system, flag); IIterable iterator = new Iterator(start, end, step); ArrayExtension.BubbleSort(array, comparer, iterator); return(array); }