Skip to content

Commit ad94913

Browse files
refactor 127
1 parent 9a9db67 commit ad94913

File tree

1 file changed

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

1 file changed

+0
-26
lines changed

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

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,6 @@
44
import java.util.List;
55
import java.util.Set;
66

7-
/**
8-
* 127. Word Ladder
9-
*
10-
* Given two words (beginWord and endWord), and a dictionary's word list,
11-
* find the length of shortest transformation sequence from beginWord to endWord, such that:
12-
* Only one letter can be changed at a time.
13-
* Each transformed word must exist in the word list. Note that beginWord is not a transformed word.
14-
15-
For example,
16-
17-
Given:
18-
beginWord = "hit"
19-
endWord = "cog"
20-
wordList = ["hot","dot","dog","lot","log","cog"]
21-
22-
As one shortest transformation is "hit" -> "hot" -> "dot" -> "dog" -> "cog", return its length 5.
23-
24-
Note:
25-
26-
Return 0 if there is no such transformation sequence.
27-
All words have the same length.
28-
All words contain only lowercase alphabetic characters.
29-
You may assume no duplicates in the word list.
30-
You may assume beginWord and endWord are non-empty and are not the same.
31-
*/
32-
337
public class _127 {
348
public static class Solution1 {
359

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