Problem 3137 · Medium

Minimum Number of Operations to Make Word K-Periodic

Split the word into length-k blocks and keep the most frequent block fixed.

Open the interactive visualisation