Problem 3138 · Medium

Minimum Length of Anagram Concatenation

Try lengths that divide the string from shortest to longest and keep the first one whose blocks are all anagrams of each other.

Open the interactive visualisation