Minimum Window Substring

Given two strings s and t, find the shortest contiguous substring of s that contains every character of t, including duplicate occurrences.

  • If multiple valid substrings have the same mi...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: