Problem 2953 · Hard

Count Complete Substrings

Split the word where neighbours drift more than two letters apart, then count windows where every letter appears exactly k times.

Open the interactive visualisation