Available question text
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.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Uber
Leetcode 648. Replace Words
Reported Aug 9, 2025 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source