Back to DSA sheet
Permutation in String
MediumSliding WindowReturn true if s2 contains a permutation of s1 as a contiguous substring.
Constraints
- 1 <= s1.length, s2.length <= 10^4
- Lowercase letters
Sheets
Blind 75NeetCode 150NeetCode 250
permutation-in-string.cpp
Loading editor
Custom input (stdin)
Output
Run your code to see its output.