Deviopath › Go

Anagrams

Medium · Maps

Two strings are anagrams if they contain the same characters with the same counts, ignoring case and spaces. "Listen" and "Silent" are anagrams. "a a" and "AA" are anagrams (two A's each).

Write Anagram(a, b) that returns whether they are anagrams.

Next: Group by Length