Unique Word Abbreviation (Design)
Design a data structure to test whether a word's abbreviation is unique.
Abbreviation rule: for a word word, if len(word) <= 2 the abbreviation is the word itself; otherwise it is `first letter +...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
