Exemplo n.º 1
0
        public void IsPossibleDivide_5()
        {
            var solution = new _1296_DivideArrayInSetsOfKConsecutiveNumbers();
            var result   = solution.IsPossibleDivide(new int[] { 1, 3, 3, 4, 5, 5 }, 3);

            Assert.IsFalse(result);
        }
Exemplo n.º 2
0
        public void IsPossibleDivide_1()
        {
            var solution = new _1296_DivideArrayInSetsOfKConsecutiveNumbers();
            var result   = solution.IsPossibleDivide(new int[] { 1, 2, 3, 3, 4, 4, 5, 6 }, 4);

            Assert.IsTrue(result);
        }
Exemplo n.º 3
0
        public void IsPossibleDivide_3()
        {
            var solution = new _1296_DivideArrayInSetsOfKConsecutiveNumbers();
            var result   = solution.IsPossibleDivide(new int[] { 3, 3, 2, 2, 1, 1 }, 3);

            Assert.IsTrue(result);
        }