leetcode

438. Find All Anagrams in a String

Alphabet solution code

_n = s and m = p _

Time complexity: O(n+m))

_k = alphabet = 26_

Space complexity: O(k)

Runtime 10 ms
Beats 79.78%

Memory 44.52 MB
Beats 77.96%