You are given zero, one, and limit.
A binary array arr is considered stable if:
The count of arr is exactly zero.
The count of arr is exactly one.
Every subarray of arr with a size strictly greater than limit contains both
Return the total number of stable binary arrays. Since the answer may be very large, return it modulo
Constraints:
zero, one, limit
You are given zero, one, and limit.
A binary array arr is considered stable if:
The count of arr is exactly zero.
The count of arr is exactly one.
Every subarray of arr with a size strictly greater than limit contains both
Return the total number of stable binary arrays. Since the answer may be very large, return it modulo
Constraints:
zero, one, limit