示例#1
0
        public void SecondArrayTest_SolTwo()
        {
            var nums   = new int[] { 0, 1, 2, 2, 3, 0, 4, 2 };
            var sol    = new RemoveElement(nums, 2);
            var result = sol.SolutionTwo();

            Assert.AreEqual(5, result);
        }
示例#2
0
        public void FirstArrayTest_SolTwo()
        {
            var nums   = new int[] { 3, 2, 2, 3 };
            var sol    = new RemoveElement(nums, 3);
            var result = sol.SolutionTwo();

            Assert.AreEqual(2, result);
        }