Skip to content

Commit e9e607b

Browse files
refactor 676
1 parent 739912b commit e9e607b

File tree

1 file changed

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

1 file changed

+0
-25
lines changed

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,6 @@
33
import java.util.HashSet;
44
import java.util.Set;
55

6-
/**
7-
* 676. Implement Magic Dictionary
8-
* Implement a magic directory with buildDict, and search methods.
9-
* For the method buildDict, you'll be given a list of non-repetitive words to build a dictionary.
10-
* For the method search, you'll be given a word,
11-
* and judge whether if you modify exactly one character into another character in this word,
12-
* the modified word is in the dictionary you just built.
13-
14-
Example 1:
15-
16-
Input: buildDict(["hello", "leetcode"]), Output: Null
17-
Input: search("hello"), Output: False
18-
Input: search("hhllo"), Output: True
19-
Input: search("hell"), Output: False
20-
Input: search("leetcoded"), Output: False
21-
22-
Note:
23-
24-
You may assume that all the inputs are consist of lowercase letters a-z.
25-
For contest purpose, the test data is rather small by now.
26-
You could think about highly efficient algorithm after the contest.
27-
Please remember to RESET your class variables declared in class MagicDictionary,
28-
as static/class variables are persisted across multiple test cases. Please see here for more details.
29-
30-
*/
316
public class _676 {
327

338
public static class Solution1 {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy