Word Ladder

Given two words of equal length, startWord and endWord, and a dictionary wordList, you may change exactly one character in the current word at each step.

Every intermediate word, as well as...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: