Check two strings are anagrams
suggest changeIntroduction
Two string with same set of character is called anagram. I have used javascript here.
We will create an hash of str1 and increase count +1. We will loop on 2nd string and check all characters are there in hash and decrease value of hash key. Check all value of hash key are zero will be anagram.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents