Skip to content

Commit 1312ba1

Browse files
refactor 288
1 parent 3a98060 commit 1312ba1

File tree

1 file changed

+0
-31
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-31
lines changed

src/main/java/com/fishercoder/solutions/_288.java

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,6 @@
66
import java.util.Map;
77
import java.util.Set;
88

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" ]
27-
28-
isUnique("dear") ->
29-
false
30-
31-
isUnique("cart") ->
32-
true
33-
34-
isUnique("cane") ->
35-
false
36-
37-
isUnique("make") ->
38-
true
39-
*/
409
public class _288 {
4110
public static class Solution1 {
4211

0 commit comments

Comments
 (0)