Ejemplo n.º 1
0
        public void FindPeakElementTest_1()
        {
            var solution = new _0162_FindPeakElement();
            var result   = solution.FindPeakElement(new int[] { 1, 2, 3, 1 });

            Assert.AreEqual(2, result);
        }
Ejemplo n.º 2
0
        public void FindPeakElementTest_2()
        {
            var solution = new _0162_FindPeakElement();
            var result   = solution.FindPeakElement(new int[] { 1, 2, 1, 3, 5, 6, 4 });

            Assert.AreEqual(5, result);
        }