Skip to content

Commit 79a104e

Browse files
[N-0] refactor 127
1 parent 3d30ef8 commit 79a104e

File tree

1 file changed

+1
-4
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+1
-4
lines changed

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@
3333

3434
public class _127 {
3535

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.*/
36+
/**We can share a visited set from both ends since we cannot remove word from dict.*/
4037
public int ladderLength(String beginWord, String endWord, List<String> wordList) {
4138
Set<String> beginSet = new HashSet<>();
4239
Set<String> endSet = new HashSet<>();

0 commit comments

Comments
 (0)