</>OfferRetriever
DashboardDiscuss
NEW

Halloween Sale

Unlock all premium questions for over 30% off

$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Meta Questions

Find Shortest Distinct Prefix

Medium

Question

You receive a list of words. For every word, work out the shortest prefix that belongs to that word alone: a leading piece of the word that no other word in the list also begins with. That prefix is enough to tell the word apart from all the others. ...

Asked at:Meta

More Meta interview questions

All Meta interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.