算法:滑动窗口
滑动窗口最小窗口:1234567//i, j分别为窗口的左右指针while (j < 最大长度) { while (满足条件) 窗口左边界右移 更新result j ++;}
lc.76 最小覆盖子串
123456789101112131415161718192021222324252627282930313233343536class Solution {public: string minWindow(string s, string t) { string res = ""; // 初始化 int len = s.size(); // 最小字串的长度, 初始化为最大 // i,j为左右指针,diff为s[i...j]和t之间差别个数 int i = 0, j = 0, diff = t.size(); // map存放t种每个元素及其对应的个数 unordered_map<char, ...
无题
房价预测
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
