Ejemplo n.º 1
0
        public override string SecondStar()
        {
            var input  = ReadLineInput().Select(x => Regex.Replace(x, @"\s+", " ")).ToList();
            var result = PassPhrase.CountAnagrams(input);

            return(result.ToString());
        }
Ejemplo n.º 2
0
        public void Problem1_Example1(string input, int expectedValidCount)
        {
            var count = PassPhrase.Count(new[] { input });

            Assert.Equal(expectedValidCount, count);
        }
Ejemplo n.º 3
0
        public void Problem2_Example1(string input, int expected)
        {
            var count = PassPhrase.CountAnagrams(new[] { input });

            Assert.Equal(expected, count);
        }