Difficulty:
Given two strings composed of spaces, punctuation marks and letters, determine if they are anagrams. Two strings are anagrams if ignoring non-letters and the case of letters, they consist of exactly the same number of letters. For example
Dormitory
andDirty Room
are anagrams, whereasbar
andbarb
are not.
isAnagram("Election results", "Lies - Let's recount!");
true