leetcode

567. Permutation in String

Solution

**Time complexity: O( substring + string )**

k = |alphabet| = 26

Space complexity: O(k)