Minimum Prefix Subset
Meta interview questions · Hard · Coding round · 6 tests
Select the smallest subset of input words whose prefixes cover every word in the list.
The full question, tests and reference solution are available with a plan that includes Meta.
Run your code with Ctrl+Enter to see results.