I understand how to check 2 Strings for anagrams. Before that how would I clean up the input strings from white spaces, capital letters and punctuations.
Asked
Active
Viewed 1,163 times
0
-
2http://stackoverflow.com/questions/21946042/remove-all-spaces-and-punctuation-anything-not-a-letter-from-a-string – austin wernli Apr 03 '15 at 16:18
-
Instead of removing spaces, capital letters or punctuation, put a condition in the checkAnagram code for these characters and skip those. This way one iteration can be saved(:P). Can you post your Anagram code, so that we can have a look at that and suggest changes? – Krishna Kumar Apr 03 '15 at 16:23
-
1@KrishnaKumar SO isn't the appropriate site for code reviews; the [Code Review StackExchange](http://codereview.stackexchange.com/) is. – Dave Newton Apr 03 '15 at 16:26
-
I am not asking for code review, to suggest an answer I am just giving one suggestion, we can point out easily the change based on the code. – Krishna Kumar Apr 03 '15 at 16:36