Skip to main content
Minimum Window Substring | AlgoCracked
AlgoCracked
ProblemsMinimum Window Substring
Hard42.0% acceptance
Blind75StringSliding WindowHash TableTwo Pointers

Minimum Window Substring

Given two strings s and t , return the shortest substring of s that contains every character of t , counting multiplicity (if t has two A s, the window must too). If no such substring exists, return the empty string . If several shortest windows exist, return the one that starts earliest in s . Input format Input is [s, t] , e.g. [ ADOBECODEBANC , ABC ] .

Loading workspace…