Minimum Window Subsequence

Hard

📝 Description

Find shortest substring of S that contains all characters of T in order

Input Format

Strings S and T

Output Format

Minimum window substring

Constraints

1 ≤ S.length, T.length ≤ 10^4

🔍 Sample Input

"abcdebdde"
"bde"
            

✅ Sample Output

"bcde"
            

Code Editor

Please login to run and submit code.

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