Available question text
Given a list of words, generate the shortest unique abbreviation for each word of the form prefix + count of omitted middle letters + last letter (or keep the full word if abbreviation isn't shorter), resolving conflicts by expanding the shared prefix until every abbreviation is unique. The core challenge is grouping conflicting words and efficiently finding the minimal prefix length (often via grouping or a trie) needed to make each abbreviation distinct.
Related questions
Continue with questions that share topics or the same question type.
- Minimum Unique Word Abbreviation
Coding
- Unique Word Abbreviation
Coding
- Valid Word Abbreviation
Coding
- Bad Word Checker
Coding
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
Meta
Leetcode 527. Word Abbreviation
Reported Nov 22, 2025 · 3 source reports
MANAGER, SENIOR, STAFF
Source snapshot: Nov 12, 2026
View source