# Valid Anagram
- <https://leetcode.com/problems/valid-anagram/>
- An alternative is [[group-anagram]] [[]]
- [[group-anagram]]
## Solutions
- Sort the strings then compare
- Use dictionary with default values (`defaultdict(int)` in [[python|Python]]),
then iterate through the values. Efficient in memory.
- Use array, similar, most efficient in terms of memory.