Minimum Window Substring
Find the shortest part of a string that contains every letter of another string. Grow a window until it is valid, then shrink it from the left for as long as it stays valid.
Spotted a mistake in this lesson?Report an issue →
Find the shortest part of a string that contains every letter of another string. Grow a window until it is valid, then shrink it from the left for as long as it stays valid.