#127

Word Ladder

hard· Graphsruns: 0

A transformation sequence from word beginWord to word endWord using a dictionary wordList is a sequence such that every adjacent pair differs by a single letter and every intermediate word is in wordList. Given two words beginWord and endWord, and a dictionary wordList, return the number of words in the shortest transformation sequence from beginWord to endWord, or 0 if no such sequence exists. endWord must appear in wordList.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.