Example #1
0
        public void CutTheSticksTest_Case3()
        {
            List <int> arr = new List <int> {
                8, 8, 14, 10, 3, 5, 14, 12
            };

            var actual = new ExamplesOfHackerRank.Examples.CutTheSticks().FindCutOperation(arr);

            List <int> expected = new List <int> {
                8, 7, 6, 4, 3, 2
            };

            CollectionAssert.AreEqual(expected, actual);
        }
Example #2
0
        public void CutTheSticksTest_Case1()
        {
            List <int> arr = new List <int> {
                5, 4, 4, 2, 2, 8
            };

            var actual = new ExamplesOfHackerRank.Examples.CutTheSticks().FindCutOperation(arr);

            List <int> expected = new List <int> {
                6, 4, 2, 1
            };

            CollectionAssert.AreEqual(expected, actual);
        }