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

            return(result.ToString());
        }
示例#2
0
        public void Problem2_Example1(string input, int expected)
        {
            var count = PassPhrase.CountAnagrams(new[] { input });

            Assert.Equal(expected, count);
        }