mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 18:31:41 +08:00
批量更新数据
This commit is contained in:
@@ -2,24 +2,26 @@
|
||||
|
||||
<p>编写一个程序,返回一个可能的转换序列。如有多个可能的转换序列,你可以返回任何一个。</p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>
|
||||
beginWord = "hit",
|
||||
endWord = "cog",
|
||||
wordList = ["hot","dot","dog","lot","log","cog"]
|
||||
<pre>
|
||||
<strong>输入:</strong>
|
||||
beginWord = "hit",
|
||||
endWord = "cog",
|
||||
wordList = ["hot","dot","dog","lot","log","cog"]
|
||||
|
||||
<strong>输出:</strong>
|
||||
["hit","hot","dot","lot","log","cog"]
|
||||
<strong>输出:</strong>
|
||||
["hit","hot","dot","lot","log","cog"]
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>
|
||||
beginWord = "hit"
|
||||
endWord = "cog"
|
||||
wordList = ["hot","dot","dog","lot","log"]
|
||||
<pre>
|
||||
<strong>输入:</strong>
|
||||
beginWord = "hit"
|
||||
endWord = "cog"
|
||||
wordList = ["hot","dot","dog","lot","log"]
|
||||
|
||||
<strong>输出: </strong>[]
|
||||
<strong>输出:</strong>[]
|
||||
|
||||
<strong>解释:</strong> <em>endWord</em> "cog" 不在字典中,所以不存在符合要求的转换序列。</pre>
|
||||
<strong>解释:</strong><em>endWord</em> "cog" 不在字典中,所以不存在符合要求的转换序列。</pre>
|
||||
|
Reference in New Issue
Block a user