Problem 1858 · Medium

Longest Word With All Prefixes

Find the longest word whose every nonempty prefix is also present.

Open the interactive visualisation