File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 7
7
import java .util .Queue ;
8
8
import java .util .Set ;
9
9
10
- /**
11
- * 269. Alien Dictionary
12
- *
13
- * There is a new alien language which uses the latin alphabet.
14
- * However, the order among letters are unknown to you.
15
- * You receive a list of words from the dictionary, where words are sorted lexicographically by the rules of this new language.
16
- * Derive the order of letters in this language.
17
-
18
- For example,
19
- Given the following words in dictionary,
20
-
21
- [
22
- "wrt",
23
- "wrf",
24
- "er",
25
- "ett",
26
- "rftt"
27
- ]
28
- The correct order is: "wertf".
29
-
30
- Note:
31
- You may assume all letters are in lowercase.
32
- If the order is invalid, return an empty string.
33
- There may be multiple valid order of letters, return any one of them is fine.
34
- */
35
10
public class _269 {
36
11
public static class Solution1 {
37
12
You can’t perform that action at this time.
0 commit comments