摘要: 题目: 给定一个含有 n 个正整数的数组和一个正整数 s ,找出该数组中满足其和 ≥ s 的长度最小的 连续 子数组,并返回其长度。如果不存在符合条件的子数组,返回 0。 示例: 输入:s = 7, nums = [2,3,1,2,4,3] 输出:2 解释:子数组 [4,3] 是该条件下的长度最小的 阅读全文
posted @ 2020-12-01 15:59 adfas 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 定义: Counting sort is a stable sorting technique, which is used to sort objects according to the keys that are small numbers. It counts the number of k 阅读全文
posted @ 2020-12-01 09:01 adfas 阅读(87) 评论(0) 推荐(0) 编辑