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

Lines changed: 1 addition & 4 deletions
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)
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