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

            Assert.IsTrue(result);
        }
Ejemplo n.º 2
0
        public void IsMonotonic_3()
        {
            var solution = new _0896_MonotonicArray();
            var result   = solution.IsMonotonic(new int[] { 1, 3, 2 });

            Assert.IsFalse(result);
        }