예제 #1
0
        public void Not_Perm_When_duplicate_exist()
        {
            var counting = new CountingElement();
            var nums     = new int[] { 3, 1, 2, 4, 3 };

            Assert.Equal(0, counting.Check_Perm(nums));
        }
예제 #2
0
        public void Is_Perm()
        {
            var counting = new CountingElement();
            var nums     = new int[] { 1, 2, 4, 3 };

            Assert.Equal(1, counting.Check_Perm(nums));
        }