Esempio n. 1
0
        public void NonDivisibleSubSetTest_Case4()
        {
            int        divisor = 4;
            List <int> set     = new List <int> {
                1, 2, 3, 4, 5, 6, 7, 8, 9, 10
            };

            var actual = new ExamplesOfHackerRank.Examples.NonDivisibleSubSet().FindMaxSubsetCount(divisor, set);

            var expected = 5;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void NonDivisibleSubSetTest_Case2()
        {
            int        divisor = 7;
            List <int> set     = new List <int> {
                278, 576, 496, 727, 410, 124, 338, 149, 209, 702, 282, 718, 771, 575, 436
            };

            var actual = new ExamplesOfHackerRank.Examples.NonDivisibleSubSet().FindMaxSubsetCount(divisor, set);

            var expected = 11;

            Assert.AreEqual(expected, actual);
        }