Skip to content

Instantly share code, notes, and snippets.

@ashga
Created October 16, 2012 17:46
Show Gist options
  • Save ashga/3900827 to your computer and use it in GitHub Desktop.
Save ashga/3900827 to your computer and use it in GitHub Desktop.
Question 2 Anagrams
public static bool IsAnagram(string WordA, string WordB)
{
return WordA.OrderBy(x => x).SequenceEqual(WordB.OrderBy(x => x));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment