We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d30ef8 commit 79a104eCopy full SHA for 79a104e
src/main/java/com/fishercoder/solutions/_127.java
@@ -33,10 +33,7 @@
33
34
public class _127 {
35
36
- /**this one https://discuss.leetcode.com/topic/29303/two-end-bfs-in-java-31ms fails by test case _127Test.test1().
37
- * All transformed words, including endWord must be in wordList.
38
- *
39
- * And we can share a visited set from both ends since we cannot remove word from dict.*/
+ /**We can share a visited set from both ends since we cannot remove word from dict.*/
40
public int ladderLength(String beginWord, String endWord, List<String> wordList) {
41
Set<String> beginSet = new HashSet<>();
42
Set<String> endSet = new HashSet<>();
0 commit comments