Word Ladder - MATLAB Cody - MATLAB Central

Problem 45463. Word Ladder

Difficulty:Rate

Given a set of words, and two other words - start and destination,

Find the smallest chain from start to the destination such that adjacent words in the chain only differ by one character and each word in the chain exists in the set.

All the words are of the same length. The starting word is not in the set but destination word would be.

For example,

 Start = 'COLD'
 Destination = 'WARM'
 set ={ CORD CARD DART FORT WARM FARM WARD}
 COLD → CORD → CARD → WARD → WARM

Solution Stats

18.75% Correct | 81.25% Incorrect
Last Solution submitted on Mar 23, 2025

Problem Comments

Solution Comments

Show comments
Who Deserves Your Praise? Discover the New Contribution Widget!
...
We are excited to announce another update to our Discussions area: the...

Problem Recent Solvers11

Suggested Problems

More from this Author165

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page