Valid Anagram

Easy
#strings #hash-table

Input: `s` (str), `t` (str). Return: `True` if `t` is an anagram of `s`, else `False`.

Example

Input: 'anagram', 'nagaram'
Output: True
Need a hint?
  • Sort both strings or use frequency counters
Run your code to see output