You are given four integers minLength, maxLength, oneGroup, and zeroGroup.
A binary string is defined as good if:
Its length is at least minLength and at most maxLength.
The length of each contiguous block of '1's is a multiple of oneGroup.
The length of each contiguous block of '0's is a multiple of zeroGroup.
Return the total number of good binary strings. Since the answer can be large, return it modulo
Constraints:
minLength maxLength
oneGroup, zeroGroup maxLength
You are given four integers minLength, maxLength, oneGroup, and zeroGroup.
A binary string is defined as good if:
Its length is at least minLength and at most maxLength.
The length of each contiguous block of '1's is a multiple of oneGroup.
The length of each contiguous block of '0's is a multiple of zeroGroup.
Return the total number of good binary strings. Since the answer can be large, return it modulo
Constraints:
minLength maxLength
oneGroup, zeroGroup maxLength