Skip to content

Commit a750988

Browse files
refactor 524
1 parent 2ab67f4 commit a750988

File tree

1 file changed

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

1 file changed

+0
-27
lines changed

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

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,6 @@
33
import java.util.Collections;
44
import java.util.List;
55

6-
/**
7-
* 524. Longest Word in Dictionary through Deleting
8-
*
9-
* Given a string and a string dictionary, find the longest string in the dictionary that
10-
* can be formed by deleting some characters of the given string.
11-
* If there are more than one possible results,
12-
* return the longest word with the smallest lexicographical order.
13-
* If there is no possible result, return the empty string.
14-
15-
Example 1:
16-
Input:
17-
s = "abpcplea", d = ["ale","apple","monkey","plea"]
18-
19-
Output:
20-
"apple"
21-
Example 2:
22-
Input:
23-
s = "abpcplea", d = ["a","b","c"]
24-
25-
Output:
26-
"a"
27-
28-
Note:
29-
All the strings in the input will only contain lower-case letters.
30-
The size of the dictionary won't exceed 1,000.
31-
The length of all the strings in the input won't exceed 1,000.
32-
*/
336
public class _524 {
347

358
public static class Solution1 {

0 commit comments

Comments
 (0)