Anagram

Two strings are said to be anagrams, if one string can be obtained by rearranging the letters of another. Examples: dog, god abac, baac anagram, nagaram silent, listen class Anagram { public static void IsAnagram(string word1, string word2) { bool flag = true; if (word1.Length != word1.Length) { flag = false; } var aFrequency = […]

Read More