Minimum Window Substring

Hard

📝 Description

Find the smallest substring of s containing all characters of t.

Input Format

s (string), t (string)

Output Format

smallest substring (string)

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