Created
October 16, 2012 17:46
-
-
Save ashga/3900827 to your computer and use it in GitHub Desktop.
Question 2 Anagrams
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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