...

/

Solution: Word Ladder

Solution: Word Ladder

Let's solve the Word Ladder problem using the Tree Breadth-first Search pattern.

Statement

Given two words, src and dest, and a list, words, return the number of words in the shortest transformation sequence from src to dest. If no such sequence could be formed, return 00.

A transformation sequence is a sequence of words ((src \to word1word_1 \to word2word_2 ...