leetcode:127. 单词接龙

127. 单词接龙

来源:力扣(LeetCode)

链接: https://leetcode.cn/problems/word-ladder/

字典 wordList 中从单词 beginWordendWord 的 转换序列 是一个按下述规格形成的序列 beginWord -> s1 -> s2 -> ... -> sk

  • 每一对相邻的单词只差一个字母。
  • 对于 1 <= i <= k 时,每个 si 都在 wordList 中。注意, beginWord 不需要在 wordList 中。
  • s k = =

你可能感兴趣的:(编程练习-Leetcode,leetcode,算法,bfs,单词接龙,算法训练)