Problem 1566 · Easy

Detect Pattern of Length M Repeated K or More Times

Detect whether a pattern of given length repeats enough consecutive times without overlapping by counting matches in a sliding run. The visual highlights the repeating block.

Open the interactive visualisation