Problem 2930 · Medium

Number of Strings Which Can Be Rearranged to Contain Substring

Count strings by how many of l, e, and t they have used, each capped at what leet needs, with the other 23 letters as a free choice.

Open the interactive visualisation