- 博客(3)
- 收藏
- 关注
原创 LeetCode 209.长度最小的子数组
LeetCode 209.长度最小的子数组 给定一个含有 n 个正整数的数组和一个正整数 target 。 找出该数组中满足其和 ≥ target 的长度最小的 连续子数组 [numsl, numsl+1, …, numsr-1, numsr] ,并返回其长度。如果不存在符合条件的子数组,返回 0 。 这个一个基础的双指针问题,可以通过两个指针的移动来移动数组。 /** * @param {number} target * @param {number[]} nums * @return {numbe
2021-11-23 16:01:55
322
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人