2450. Number of Distinct Binary Strings After Applying Operations
MathString
Hints
Hint 1
Notice that any string of the same length as s will always have the same answer, so only the length of the string matters.
Hint 2
For each substring of size k, you can decide whether to flip or not. Every string s resulting from this process will be unique.
Hint 3
How do you find the number of possible combinations?
Preparing judge…