Minimum Window Substring

hard
Unit 25 · BFS II0/0 to milestone

Given strings s and t, find the shortest substring of s that contains every character of t, including duplicates (if t has two as, the window needs two).

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Minimum Window Substring · TechGradify