Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Prune Prefix Words
Medium
A URL shortener system maintains a keyword list. To reduce redundancy, remove every keyword that is a prefix of any other keyword in the list. A string a is a prefix of string b if b starts with a and len(a) < len(b). Return only the keywords that are not a prefix of any other keyword, preserving their original relative order.
Function: pruneKeywords(keywords: list<string>) -> list<string>
...
Asked at:Roblox
More Roblox interview questions
- DOM Leaf Text Comparisonmedium
- Rating Cutoff For Loss Ratemedium
- Shuffle Playlist Verifiermedium
- Request Rate Detectorhard
- Uniform Array Segmentationhard
- Best Window For Target Countmedium
- Policy Violation Notifiermedium
- Is Function Completemedium
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.