public override string SecondStar() { var input = ReadLineInput().Select(x => Regex.Replace(x, @"\s+", " ")).ToList(); var result = PassPhrase.CountAnagrams(input); return(result.ToString()); }
public void Problem2_Example1(string input, int expected) { var count = PassPhrase.CountAnagrams(new[] { input }); Assert.Equal(expected, count); }