I know why some old code can't pass the judge now


  • 0
    C

    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.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.