Deviopath › Go

Minimum Window Substring

Hard · Algorithms

Return the shortest substring of s that covers every character in t (with at least those counts). If none, return "". If several are equally short, return the left-most.

Write MinWindow(s, t).

Next: Serialize a Tree