← All problems
Minimum Window Substring
Smallest substring of s containing all characters of t (with frequencies).
Complexity
Time O(n + m), Space O(m)
Common pitfalls
- Shrinking before the window is valid
- Not handling duplicate chars in t
Your solution
Log in to save your code and track progress.