Return True if s2 contains a permutation of s1: some substring of s2 has exactly the same letters as s1, in any order. "ab" is inside "eidbaooo" (as "ba"); it is not inside "eidboaoo".
Example 1
Input:
check_inclusion('ab', 'eidbaooo')
Output:
True
Example 2
Input:
check_inclusion('ab', 'eidboaoo')
Output:
False
0 <= len(s1) <= 1000000 <= len(s2) <= 200000No results yet
Run your code to check it against the examples, or submit to run every test.