Problem 820 · Medium

Short Encoding of Words

Find the shortest text made of words joined by a separator, where each word is stored as a suffix of that text. The visual inserts reversed words into a trie and counts the leaves that survive.

Open the interactive visualisation