You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/fishercoder/solutions/_288.java
-31Lines changed: 0 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -6,37 +6,6 @@
6
6
importjava.util.Map;
7
7
importjava.util.Set;
8
8
9
-
/**An abbreviation of a word follows the form <first letter><number><last letter>. Below are some examples of word abbreviations:
10
-
11
-
a) it --> it (no abbreviation)
12
-
13
-
1
14
-
b) d|o|g --> d1g
15
-
16
-
1 1 1
17
-
1---5----0----5--8
18
-
c) i|nternationalizatio|n --> i18n
19
-
20
-
1
21
-
1---5----0
22
-
d) l|ocalizatio|n --> l10n
23
-
Assume you have a dictionary and given a word, find whether its abbreviation is unique in the dictionary. A word's abbreviation is unique if no other word from the dictionary has the same abbreviation.
24
-
25
-
Example:
26
-
Given dictionary = [ "deer", "door", "cake", "card" ]
0 commit comments