Problem 1239 · Medium

Maximum Length of a Concatenated String with Unique Characters

Choose a subset of the given strings whose concatenation uses no repeated letter, maximizing the total length. The visual branches on each string and prunes any choice that would repeat a character.

Open the interactive visualisation