because the problem description has changed
"Each transformed word must exist in the word list. Note that beginWord is not a transformed word.“
endWord IS a transformed word, and it must be in the input wordList now.
if wordList doesn't contain endWord, you need to return 0.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.