1248. 统计「优美子数组」
摘要:
https://leetcode-cn.com/problems/count-number-of-nice-subarrays/ func numberOfSubarrays(nums []int, k int) int { //滑动窗口法:left 每次滑动到下一个奇数处,并记下滑动的距离;rig 阅读全文
posted @ 2020-04-23 22:53 wsw_seu 阅读(186) 评论(0) 推荐(0) 编辑