Problem 727 · Hard

Minimum Window Subsequence

Find the shortest slice of one string that contains the second string as a subsequence. The visual matches characters forward and then backtracks to tighten the span.

Open the interactive visualisation