コード例 #1
0
ファイル: Program.cs プロジェクト: janardan1995/janardan-das
        static void Main(string[] args)
        {
            Console.WriteLine("Functional programming");
            Console.WriteLine("----------------------");

            Console.WriteLine(" 1. All permutations of a String using iterative method and Recursion method");
            Console.WriteLine(" 2.Binary Search the Word from Word List");
            Console.WriteLine(" 3.Insertion sort in string");
            Console.WriteLine(" 4.Reads in integers prints them in sorted order using Bubble Sort");
            Console.WriteLine(" 5.Write a program to do Merge Sort of list of Strings.");
            Console.WriteLine(" 6.ne string is an anagram of another if the second is simply a rearrangement of the first");
            Console.WriteLine(" 7. Take a range of 0 - 1000 Numbers and find the Prime numbers in that range. ");
            Console.WriteLine(" 8. Extend the above program to find the prime numbers that are Anagram and Palindrome ");
            Console.WriteLine(" 9.Rewrite Use Generics for Search and Sort Algorithms");
            Console.WriteLine(" 10.Question to find your number");
            Console.WriteLine(" 11.maximum amount by which a task's completion time overshoots its deadline is minimized.");
            //Console.WriteLine("12.Customize Message Demonstration using String Function and RegEx");
            //Console.WriteLine("13.Coupone Number");
            //Console.WriteLine("14.Stop watch");
            //Console.WriteLine("15.Tic Toe Tik");
            //Console.WriteLine("16.Vending Machine");
            //Console.WriteLine("17.dayOfWeeks");
            //Console.WriteLine("18.celcius to Ferhinheit and vic versa");
            //Console.WriteLine("19.Monthly pament");
            //Console.WriteLine("20.Newton method");
            //Console.WriteLine("21.Decimal to binary");
            //Console.WriteLine("22.swap nibble");



            int str = int.Parse(Console.ReadLine());

            switch (str)
            {
            case 1:
                PermutationOfString.Permu();
                break;

            case 2:
                BinarySearch.Binary();
                break;

            case 5:
                MergeSort.Merge1();
                break;

            //case 4:
            //    HarmonicNumber.Harmonic();
            //    break;
            case 3:
                InsertionSort.Insertion();
                break;
            //case 6:
            //    FactorNumber.Factor();
            //    break;
            //case 7:
            //    TwoDArray.Two();
            //    break;
            //case 8:
            //    SumOfThree.Sum();
            //    break;
            //case 9:
            //    Distance.Dist();
            //    break;
            //case 10:
            //    Quadratic.Quad();
            //    break;
            //case 11:
            //    WindChill.Wind();
            //    break;
            //case 12:
            //    Gambler.Game();
            //    break;
            //case 13:
            //    Cupon_number.Cupon();
            //    break;
            //case 14:
            //    Stopwatchs.Stop();
            //    break;
            //case 15:
            //    TicTakTeo.Tic();
            //    break;
            //case 16:
            //    VendingMachine.Vending();
            //    break;
            //case 17:
            //    DaysOfWeek.Days();
            //    break;
            //case 18:
            //    TemperatureConversion.Temperature();
            //    break;
            //case 19:
            //    MonthlyPayment.Payment();
            //    break;

            default:
                break;
            }
        }