public static void RunSherlockAndAnagramsProblem() { string s = "ifailuhkqq"; var sherlocAndAnagramsProblem = new SherlockAndAnagramsProblem(); Console.WriteLine("Sharlock And Anagrams Problem Output: " + sherlocAndAnagramsProblem.SherlockAndAnagrams(s)); }
public void TestCase0() { using (StreamReader sr = new StreamReader(@"HackerRank\SherlockAndAnagrams_TestCase0.txt")) { int q = Convert.ToInt32(sr.ReadLine()); for (int qItr = 0; qItr < q; qItr++) { string s = sr.ReadLine(); int result = SherlockAndAnagramsProblem.SherlockAndAnagrams(s); Console.WriteLine(result); } } }