leetcode
567. Permutation in String
Solution
Python code
Java code
**Time complexity: O(
substring
+
string
)**
k = |alphabet| = 26
Space complexity: O(k)