Minimum Window Substring — JavaScript hard interview problem
Given two strings `s` and `t` of lengths m and n, return the minimum window substring of `s` such that every character in `t` (including duplicates) is included in the window. If there is no such substring, return the empty string `""`. The testcases will be generated such that the answer is unique. Example: `minWindow("ADOBECODEBANC", "ABC")` → `"BANC"`.
Tags: sliding-window, hashmap
Practice this Strings problem free in the JS Interview Playground with automated tests and unlockable solutions.