Dynamic Programming
2466. Count Ways To Build Good Strings
Build strings by appending either zero zeros or one ones per step. A string is good if its length is in [low, high]. Count the distinct good strings, modulo 1e9+7. The number of strings of length i…
Loading…