Minimum Window Substring
Medium
Strings
String
Sliding Window
Hash Table
Find minimum window in s containing all characters of t.
Constraints
1 ≤ lengths ≤ 10^5
Examples
Example 1:
Input: ADOBECODEBANC
ABC
Output: BANC
Example 2:
Input: a
a
Output: a
Tests:
Runtime:
Memory:
Test
Input:
Expected:
Got:
Click Run Code to test against sample cases, or Submit to test against all cases.
▲ Console