Example #1
0
        static void SortingAlgos()
        {
            int[]         array1 = { 4, 2, 3, 5, 1 };
            MySortingAlgo srt    = new MySortingAlgo();

            //srt.BubbleSort(array1);
            //srt.SelectionSort(array1);
            srt.InsertionSort(array1);
            for (int i = 0; i < array1.Length; i++)
            {
                Console.WriteLine(array1[i]);
            }
        }
Example #2
0
        static void NameSpaceRequire()
        {
            MySortingAlgo msa = new MySortingAlgo();

            msa.NameSpaceRequire();
        }