Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 648. Replace Words
Given a dictionary of root words and a sentence, replace each word by the shortest root that is a prefix of it (if any) and return the transformed sentence. Efficient solutions perform prefix lookups (e.g., using a trie) to handle large words and many dictionary roots.
Asked at:
Uber
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early August, 2025
Uber
Mid-level
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.