Minimum Window Subsequence
Given strings s and t, print the shortest contiguous substring of s that contains t as a subsequence. If several have the same length print the one that starts earliest. Print an empty line if there is none.
Constraints
1 <= len(s) <= 2 * 10^4 1 <= len(t) <= 100
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.