예제 #1
0
        static void Main(string[] args)
        {
            int[] q = { 2, 1, 5, 3, 4 };

            NewYearChaos.minimumBribes(q);
            //Console.WriteLine(CountingValleys.countingValleys(n, s));
            //Console.WriteLine(BreakingTheRecords.breakingRecords(ar));
            //Console.WriteLine(GradingStudents.gradingStudents(nums).ToString());
            //Console.WriteLine(BirthdayCakeCandles.birthdayCakeCandles(ar));
            //PlusMinus.plusMinus(ar);
            //Console.WriteLine(AVeryBigSum.aVeryBigSum(ar));
            //Console.WriteLine(TimeConversion.timeConversion("07:05:45AM"));
        }
예제 #2
0
 static void Main(string[] args)
 {
     Console.WriteLine("Please enter no of records");
     //sock merchant problem
     //SockMerchant.sockMerchant_input();
     //Counting valleys problem
     // int countValleysResult=CountingValleys.CountValleys("UDDDUDUUDDUU");
     //Console.WriteLine(countValleysResult);
     //int[] input = new int[] {0,1,0,0,1,0};
     //int cloudJumpResult=CloudJumping.minCloudToJump(input);
     //Console.WriteLine(cloudJumpResult);'
     //getInputFor2DArray();
     //leftRotation();
     //long result = RepeatedString.repeatedString("a", 100000000000);
     //Console.WriteLine("result->" + result);
     NewYearChaos.minimumBribes(new int[] { 1, 2, 5, 3, 7, 8, 6, 4 });
     //{ 1,2,3,4,5,6,7,8 }
     //--{1,2,5,3,4,6,7,8}--2
     //--{1,2,5,3,7,4,6,8}--2
     //--{1,2,5,3,7,8,4,6}--2
     //{ 1,2,5,3,7,8,6,4 }   5326q5 xs
 }