摘要:
问题: 给定数组(含有正数负数),求连续子集合和=k的子集合数。 Example 1: Input:nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of 阅读全文
posted @ 2020-04-12 19:30
habibah_chang
阅读(189)
评论(0)
推荐(0)
摘要:
问题: degree:给定数组中重复最多元素的次数 求重复次数为degree的元素中,距离最短子数组的长度。 Example 1: Input: [1, 2, 2, 3, 1] Output: 2 Explanation: The input array has a degree of 2 beca 阅读全文
posted @ 2020-04-12 17:26
habibah_chang
阅读(137)
评论(0)
推荐(0)

浙公网安备 33010602011771号