Count ways to partition Binary Array into subarrays containing K 0s each
Given a binary array arr[] of size N, and an integer K, the task is to calculate the number of ways to partition the array into non-overlapping subarrays, where each subarray has exactly K number 0s. Examples: Input: arr[] = [ 0, 0, 1, 1, 0, 1, 0], K = 2Output: 3Explanation: Different possible parti