</>OfferRetriever
DashboardDiscuss
NEW

July 4th Sale

Limited Time Deal: Unlock all premium questions for over 40% off

$10.42$6.25
Ending Soon
Get this deal
Back to Dashboard

Shortest Substring with Alphabet

Medium
FREE

This is a popular twist Meta interviewers often put on the classic leetcode problem to find a minimum window substring.

Given an input string and an alphabet (set of characters), find the shortest substring of the input that contains all characters from the alphabet at least once. ...