We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd01d5 commit 2a5766fCopy full SHA for 2a5766f
source/code/projects/Sorting/Sorting/Program.cs
@@ -16,7 +16,17 @@ static void Main(string[] args)
16
Demo.Run(Sorting<int>.ShellSort);
17
Demo.Run(Sorting<char>.ShellSort);
18
19
- Demo.Run(Sorting<int>.QuickSort);
20
- Demo.Run(Sorting<char>.QuickSort);
+ Demo.Run(Sorting<int>.MergeSort);
+ Demo.Run(Sorting<char>.MergeSort);
21
+
22
+ Console.WriteLine("Quick sort:");
23
+ try
24
+ {
25
+ Demo.Run(Sorting<int>.QuickSort);
26
+ Demo.Run(Sorting<char>.QuickSort);
27
+ }catch (Exception e)
28
29
+ Console.Write(e.Message);
30
+ }
31
}
32
0 commit comments