Minimum Window Substring

Given strings s and t, return the shortest contiguous substring of s that contains every character in t, including duplicate occurrences. If no such substring exists, return an empty string `"...

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: