Problem 3760 · Medium

Maximum Substrings With Distinct Start

Each piece must begin with a different letter, so cut at the first appearance of each letter. The

Open the interactive visualisation