Пример #1
0
        static void Main(string[] args)
        {
            HighestAndLowestKyu7.HighAndLow("8 3 -5 42 -1 0 0 -9 4 7 4 -4");

            ReversedSequenceKyu8.ReverseSeq(5);

            GarbleSortKyu6.GarbleSort(new int[] { 5, 6, 3 });

            ConvertStringToCamelCaseKyu5.ToCamelCase("The-stealth-warrior");

            DescendingOrderKyu7.DescendingOrder(141267123);

            MumbligKyu7.Accum("abcd");

            MultiplesOf3Or5Kyu6.Solution(10);

            WoSewExceptions wsExceptions = new WoSewExceptions();

            wsExceptions.SelectiveExceptions();
            wsExceptions.TryCatchFinally();
            wsExceptions.TryCatchFinallyException();

            SumOfArraySinglesKyu7.SumOfArraySingles(new List <int> {
                4, 5, 7, 5, 4, 8
            });

            LoveVsFriendshipKyu7.LoveVsFriendship("love");
            LoveVsFriendshipKyu7.LoveVsFriendship("friendship");

            HumanReadableTimeKyu5.GetReadableTime(5458);
            HumanReadableTimeKyu5.GetReadableTime(0);

            YourOrderPleaseKyu6.YourOrderPlease("is2 Thi1s T4est 3a");
            YourOrderPleaseKyu6.YourOrderPlease("4of Fo1r pe6ople g3ood th5e the2");
            //"Fo1r the2 g3ood 4of th5e pe6ople"
        }
Пример #2
0
 public void YourOrderPlease()
 {
     Assert.AreEqual("Thi1s is2 3a T4est", YourOrderPleaseKyu6.YourOrderPlease("is2 Thi1s T4est 3a"));
     Assert.AreEqual("Fo1r the2 g3ood 4of th5e pe6ople", YourOrderPleaseKyu6.YourOrderPlease("4of Fo1r pe6ople g3ood th5e the2"));
     Assert.AreEqual("", YourOrderPleaseKyu6.YourOrderPlease(""));
 }