LeetCode: https://leetcode.com/problems/valid-anagram/
Given two strings s and t, return true if t is an anagram of s, and false otherwise.
Example:
- Input:
s = "anagram", t = "nagaram" - Output:
true
i
1
0
1
1
1
2
1
3
Step 1 / 3
Step 1:
Build frequency map from s.
Pointers: i=0
Focus: default