If I have a list of strings for example:
[\"car\", \"tree\", \"boy\", \"girl\", \"arc\"...]
What should I do in order to find anagrams in t
Simple Solution in Python:
def anagram(s1,s2): # Remove spaces and lowercase letters s1 = s1.replace(' ','').lower() s2 = s2.replace(' ','').lower() # Return sorted match. return sorted(s1) == sorted(s2)