public static void Main(string[] args) { int[] numbers = new int[20]; SortTests obj = new SortTests(); obj.ReadFromFile(numbers); obj.DisplayArray(numbers); Console.ReadLine(); }
public static void Sort() { SortTests.TestOrdersOfMagnitudeForSortFunctions(new Dictionary <string, SortTests.Sort>() { ["Merge"] = SortFunctions.MergeSort, ["Quick"] = SortFunctions.QuickSort, ["Insertion"] = SortFunctions.InsertionSort, ["Heap"] = SortFunctions.HeapSort, ["Bubble"] = SortFunctions.BubbleSort }); Wait(); }