using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Merge_sort { class Program { static void Main(string[] args) { int T = Convert.ToInt32(Console.ReadLine()); while(T>0) { int a; List<int> unsorted = new List<int>(); List<int> sorted; var s = Console.ReadLine().Split(' '); for(int i=0;i<s.Length;i++) { if(int.TryParse(s[i],out a)) { unsorted.Add(a); } } Console.WriteLine("Original array elements:" ); for(int i = 0; i< unsorted.Count;i++){ Console.Write(unsorted[i]+" "); } Console.WriteLine(); sorted = MergeSort(unsorted); Console.WriteLine("Sorted array elements: &q
Beginner's Kick start programs by a beginner. YOU NEED TO STEP OUT FIRST TO START