1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-11 18:31:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

批量更新数据

This commit is contained in:
2025-01-09 20:29:41 +08:00
parent 04ecea043d
commit 48cdd06c2b
5053 changed files with 156164 additions and 135322 deletions

View File

@@ -2,24 +2,26 @@
<p>编写一个程序,返回一个可能的转换序列。如有多个可能的转换序列,你可以返回任何一个。</p>
<p><strong>示例 1:</strong></p>
<p><strong>示例 1</strong></p>
<pre><strong>输入:</strong>
beginWord = &quot;hit&quot;,
endWord = &quot;cog&quot;,
wordList = [&quot;hot&quot;,&quot;dot&quot;,&quot;dog&quot;,&quot;lot&quot;,&quot;log&quot;,&quot;cog&quot;]
<pre>
<strong>输入:</strong>
beginWord = "hit",
endWord = "cog",
wordList = ["hot","dot","dog","lot","log","cog"]
<strong>输出:</strong>
[&quot;hit&quot;,&quot;hot&quot;,&quot;dot&quot;,&quot;lot&quot;,&quot;log&quot;,&quot;cog&quot;]
<strong>输出</strong>
["hit","hot","dot","lot","log","cog"]
</pre>
<p><strong>示例 2:</strong></p>
<p><strong>示例 2</strong></p>
<pre><strong>输入:</strong>
beginWord = &quot;hit&quot;
endWord = &quot;cog&quot;
wordList = [&quot;hot&quot;,&quot;dot&quot;,&quot;dog&quot;,&quot;lot&quot;,&quot;log&quot;]
<pre>
<strong>输入:</strong>
beginWord = "hit"
endWord = "cog"
wordList = ["hot","dot","dog","lot","log"]
<strong>输出: </strong>[]
<strong>输出</strong>[]
<strong>解释:</strong>&nbsp;<em>endWord</em> &quot;cog&quot; 不在字典中,所以不存在符合要求的转换序列。</pre>
<strong>解释</strong><em>endWord</em> "cog" 不在字典中,所以不存在符合要求的转换序列。</pre>