Exemple #1
0
        private void ExecuteSortWithDisplay(IArray <long> arr, Action <IArray <long>, int> Fill, int maxSize, string message)
        {
            if (maxSize > 50)
            {
                throw new ArgumentException();
            }

            Fill(arr, maxSize);
            arr.Display();
            SortArr(arr, message);
            arr.Display();
            //var t = arr as InsertSort<long>;
            //if (t != null)
            //{
            //    Console.WriteLine(t.Median());
            //    t.Nodups();
            //    t.Display();
            //}

            Console.WriteLine("\n############ END ############\n");
        }