Esempio n. 1
0
        public void CountingValleysTest1(string pathSteps, int expected)
        {
            int actual = CountingValleys.countingValleys(pathSteps);


            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            FindPairsInList fa = new FindPairsInList();

            fa.FindPairs(5, new int[] { 1, 2, 3, 1, 2 });
            CountingValleys cv = new CountingValleys();

            Console.WriteLine(cv.FindNoOfValleys(8, "UDDUUDDU"));
            Console.Read();
        }