![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
滑动窗口
文章平均质量分 50
大鱼qss
阳光的java程序员
展开
-
滑动窗口:找到字符串中所有字母异位词
滑动窗口:找到字符串中所有字母异位词原创 2022-09-19 18:53:04 · 263 阅读 · 0 评论 -
乘积小于 K 的子数组(滑动窗口)
简要分析,这个题目刚开始确实没想到滑动窗口,只是想到动态规划解法,时间复杂度为O(),代码如下:class Solution { public int numSubarrayProductLessThanK(int[] nums, int k) { int n = nums.length; int ans = 0; for(int i = 0 ; i < n ; i++) { int .原创 2022-05-05 16:06:57 · 912 阅读 · 0 评论 -
和大于等于 target 的最短子数组(三种解法)
和大于等于 target 的最短子数组(三种解法)原创 2022-04-26 22:15:39 · 889 阅读 · 0 评论 -
leetcode无重复字符的最长子串(滑动窗口)
滑动窗口经典题目-无重复字符的最长子串原创 2022-04-13 13:05:28 · 358 阅读 · 0 评论