Problem 763 · Medium

Partition Labels

Cut the string at every point where the current window contains all occurrences of its letters.

Open the interactive visualisation