Word ladder Problem

Perl - Script

Rules
In a Word Ladder:

Players get a starting word and an ending word
Starting and ending words must be the same length (PIG and HOG, or CAT and DOG)
Players change one letter at a time, attempting to move from the starting word to the ending word
Each intermediate step must be a valid word, and no proper nouns allowed!
Examples
Here are a few samples. Note that each step is a word and changes only one letter from the previous word.

FLY to CRY
Get from FLY to CRY in one step.

FLY
FRY (l r)
CRY (f c)
CAT to DOG
Turn a CAT into a DOG in two steps.

CAT
COT (a o)
DOT (c d)
DOG (t g)

Note: Without using any modules.

Regards,
asak.

---------- Post updated 04-03-18 at 10:42 AM ---------- Previous update was 04-02-18 at 07:32 PM ----------

any solutions?

Yes: do your homework - yourself! If you need help for homework/coursework please use the special board for that. Notice that special rules apply there.

This thread is closed.

bakunin

1 Like