Пример #1
0
        public void Test2_Case101()
        {
            var solution = new RemoveDuplicates2Solution();
            var nums     = new[] { 1, 1, 2, 2 };
            var actual   = solution.RemoveDuplicates(nums);

            Assert.AreEqual(4, actual);
        }
Пример #2
0
        public void Test2_Example2()
        {
            var solution = new RemoveDuplicates2Solution();
            var nums     = new[] { 0, 0, 1, 1, 1, 1, 2, 3, 3 };
            var actual   = solution.RemoveDuplicates(nums);

            Assert.AreEqual(7, actual);
        }