Minimum Window Substring

Hard

📝 Description

Find smallest substring containing all characters of pattern

Input Format

String s and string t

Output Format

Minimum window substring

Constraints

1 ≤ s.length, t.length ≤ 10^5

🔍 Sample Input

ADOBECODEBANC
ABC
            

✅ Sample Output

BANC
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run