Given an integer array nums and an integer k, return the number of contiguous subarrays of nums that contain exactly k odd numbers.
Note: A subarray is a contiguous sequence of elements within
nums.
Constraints:
nums.length
nums[i]
k nums.length
Given an integer array nums and an integer k, return the number of contiguous subarrays of nums that contain exactly k odd numbers.
Note: A subarray is a contiguous sequence of elements within
nums.
Constraints:
nums.length
nums[i]
k nums.length