3. Valid Anagram
EasyArrays & hashing
Given two lowercase strings s and t, return true if t is an anagram of s (same letters, same counts) and false otherwise.
Example 1
Input: s = "listen", t = "silent" Output: true
Example 2
Input: s = "rat", t = "car" Output: false
Constraints
1 ≤ s.length, t.length ≤ 5 × 10⁴Lowercase English letters only