mirror of
https://github.com/CyC2018/CS-Notes.git
synced 2025-07-10 04:48:20 +08:00
auto commit
This commit is contained in:
@ -1290,7 +1290,7 @@ Output: 0
|
||||
Explanation: The endWord "cog" is not in wordList, therefore no possible transformation.
|
||||
```
|
||||
|
||||
找出一条从 beginWord 到 endWord 的最短路径,每次移动规定为改变一个字符,并且改变之后的字符串必须在 wordList 中。
|
||||
题目描述:找出一条从 beginWord 到 endWord 的最短路径,每次移动规定为改变一个字符,并且改变之后的字符串必须在 wordList 中。
|
||||
|
||||
```java
|
||||
public int ladderLength(String beginWord, String endWord, List<String> wordList) {
|
||||
|
Reference in New Issue
Block a user