public void printResult() { int[] arr = new int[] { 5, 3, 7, 1, 9, 2, 4, 6, 8 }; PrintMethod.printArray1("Bubble Sort", arr); bubbleSort(arr); PrintMethod.printArray("Bubble Sort", arr); }
public void printResult() { int[] arr = new int[] { 12, 11, 13, 5, 6, 7 }; PrintMethod.printArray1("Marge Sort", arr); sort(arr, 0, arr.Length - 1); PrintMethod.printArray("Marge Sort", arr); }
public void printResult() { int[] arr = new int[] { 10, 7, 8, 9, 1, 5 }; PrintMethod.printArray1("Quick Sort", arr); sort(arr, 0, arr.Length - 1); PrintMethod.printArray("Quick Sort", arr); }
public void printResult() { int[] arr = { 2, 4, 5, 3, 1 }; PrintMethod.printArray1("Stooge Sort", arr); stoogesort(arr, 0, arr.Length - 1); Console.WriteLine(); PrintMethod.printArray("Stooge Sort", arr); Console.WriteLine(); }