word chaining puzzle
Thereās a type of puzzle where the challenge is to build a chain of words, starting with one particular word and ending with another. Successive entries in the chain must all be real words, and each can differ from the previous word by just one letter. For example, you can get from ācatā to ādogā using the following chain. cat cot cog dog The objective is to write a program that accepts start and end words and, using words from the dictionary, builds a word chain between them. For added programming fun, return the shortest word chain that solves each puzzle. For example, you can turn āleadā into āgoldā in four steps (lead, load, goad, gold), and ārubyā into ācodeā in six steps (ruby, rubs, robs, rods, rode, code).