Пример #1
0
        public void MinCostClimbingStairs_3()
        {
            var solution = new _0746_MinCostClimbingStairs();
            var result   = solution.MinCostClimbingStairs(new int[] { 0, 0, 0, 0 });

            Assert.AreEqual(0, result);
        }
Пример #2
0
        public void MinCostClimbingStairs_1()
        {
            var solution = new _0746_MinCostClimbingStairs();
            var result   = solution.MinCostClimbingStairs(new int[] { 10, 15, 20 });

            Assert.AreEqual(15, result);
        }
Пример #3
0
        public void MinCostClimbingStairs_2()
        {
            var solution = new _0746_MinCostClimbingStairs();
            var result   = solution.MinCostClimbingStairs(new int[] { 1, 100, 1, 1, 1, 100, 1, 1, 100, 1 });

            Assert.AreEqual(6, result);
        }