typestatusdateslugsummarytagscategoryiconpassword创建时间Apr 8, 2025 12:11 PM给你一个字符串 s 、一个字符串 t 。返回 s 中涵盖 t 所有字符的最小子串。如果 s 中不存在涵盖 t 所有字符的子串,则返回空字符串 "" 。https://leetcode.cn/problems/minimum-window-substring/description/?envType=study-plan-v2&envId=top-100-liked滑动窗口基本思路:判断窗口移动条件。在本题中,窗口移动的判断条件是窗口中的元素大于等于字符串 t 中的字母数。此外,在本题中还需要额外操作,使得字母长度短。例如:删除其他字符。📎 参考无