Arrays & HashingEasy

Valid Anagram

Return true if t uses exactly the same letters as s, each the same number of times (in any order).

Example 1s = "listen", t = "silent" → true
Example 2s = "apple", t = "paple" → true
Example 3s = "car", t = "cart" → falseDifferent lengths can't match.
1 ≤ length ≤ 5·10⁴ · lowercase English letters

Hints

0 of 3 open
Hint 2 · the patternHint 3 · the key line