solulubeta
Sign in
NeetCode 150 / Sliding Window
03.05 · Problem

Minimum Window Substring

Hard Expand to satisfy, shrink to minimise 1 video LC 76 Pro

This problem is part of solulu Pro

Given strings s and t, return the shortest substring of s that contains every character of t, counting duplicates (if t has two As, the window needs at least two). If there is no such window, return "". The answer is…

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 19 of 150 · updated 2026-10-12