Problem 1593 · Medium

Split a String Into the Max Number of Unique Substrings

Backtrack over every cut position, skipping any piece already used, and keep the largest count of unique pieces.

Open the interactive visualisation