摘要: 滑动窗口是一种和双指针密切相关的算法,两个指针指向的元素之间形成一个窗口,这就是滑动窗口。 下面列举几道例题 1.力扣3 题目链接:https://leetcode.cn/problems/longest-substring-without-repeating-characters/ 代码: cla 阅读全文
posted @ 2023-05-21 16:56 天雷小兔 阅读(44) 评论(0) 推荐(0)
摘要: 1.标题统计 原题:https://www.luogu.com.cn/problem/P5015 #include<bits/stdc++.h> #define ll long long using namespace std; string s;int ans=0; int main(){ get 阅读全文
posted @ 2023-05-21 15:08 天雷小兔 阅读(44) 评论(0) 推荐(0)