Appearance
最小覆盖子串。
最小覆盖子串:使用滑动窗口,右指针扩展窗口,当窗口包含所有目标字符时左指针收缩。时间复杂度O(m+n)。
function minWindow(s: string, t: string): string
滑动窗口算法。时间复杂度O(m+n)。