Halloween Sale
Unlock all premium questions for over 30% off
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
- Build Longest Concatenated Palindromehard
- Minimum Coins to Cover All Amountsmedium
- Find Median In Large Unsorted Arraymedium
- Merge Two Sorted Interval Listsmedium
- Count Distinct Elements in Each Windoweasy
- Compress Nodes In N-ary Treemedium
- Design a Coding Practice Platformhard
- Minimum Sum Tree Pathmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.