Problems > Anagram Check > Editorial

Anagram Check — Solution & Editorial

Back to the Problem

Compare the 26 letter counts of both strings (or compare the sorted strings).

Complexity: O(|A| + |B|)