Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Verify Anagrams by gyahun_dash
from collections import Counter
def stats(string):
return Counter(string.lower().replace(' ', ''))
def verify_anagrams(first: str, second: str):
return stats(first) == stats(second)
May 12, 2014
Comments: