Back to course home
0% completed
Vote For New Content
Word Ladder (hard)
Problem Statement
A transformation sequence
is a sequence that starts from the word beginWord
, ends with endWord
, and contains a word from the given dictionary wordList
in the middle i.e. a sequence of words beginWord -> s1 -> s2 -> ... -> sk
such that:
- Each adjacent pair of words differs by a single letter.
- Each si for
1 <= i <= k
is in wordList. sk == endWord - The
beginWord
does not need to be in wordList.
Given two strings, beginWord
and endWord
, and a `wordList
.....
.....
.....
Like the course? Get enrolled and start learning!
On this page