Facebook | Phone Screen | Minimum Window Substring

Anonymous User
2354
Oct 29, 2019
Oct 29, 2019

Given a string as a "source" string, find the smallest substring of source such that it contains all characters in "search" string (which contains distinct characters).

For example, for search string ['a','b','c'], source string "aefbcgaxy", the shortest string is "bcga".

Comments (3)