Given three positive integers zero, one, and limit.
A binary array arr is considered stable if:
The number of occurrences of arr is exactly zero.
The number of occurrences of arr is exactly one.
Every contiguous subarray of arr with a length strictly greater than limit contains at least one
Return the total number of stable binary arrays. Since the answer can be very large, return it modulo
Constraints:
zero, one, limit
Given three positive integers zero, one, and limit.
A binary array arr is considered stable if:
The number of occurrences of arr is exactly zero.
The number of occurrences of arr is exactly one.
Every contiguous subarray of arr with a length strictly greater than limit contains at least one
Return the total number of stable binary arrays. Since the answer can be very large, return it modulo
Constraints:
zero, one, limit