Count Anagram Occurrences

Sliding Window ยท medium

Implement `countAnagrams(s, p)` returning how many start indices in `s` begin a substring that is an anagram of `p`.

Learning resources

Loading...

Run your code to see results.