shortest list of four letter words
-
DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance
Sarfarj Ahmed
-
DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance
Sarfarj Ahmed
-
DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance
Sarfarj Ahmed
Ah, to be back in school again...
-
DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance
Sarfarj Ahmed
Just a hint to point you in the right direction: think sql.
My advice is free, and you may get what you paid for.
-
DictionaryFile - the file name of a text file containing four letter words StartWord - a four letter word (that you can assume is found in the DictionaryFile file) EndWord - a four letter word (that you can assume is found in the DictionaryFile file) ResultFile - the file name of a text file that will contain the result The result is the shortest list of four letter words, starting with StartWord, and ending with EndWord, with a number of intermediate words that are to be found in the DictionaryFile file where each word differs from the previous word by precisely one letter. For example, if StartWord = Spin, EndWord = Spot and DictionaryFile file contains Spin Spit Spat Spot Span then ResultFile should contain Spin Spit Spot Two examples of incorrect results: Spin, Span, Spat, Spot (invalid as it takes 3 changes rather than 2) Spin, Spon, Spot (invalid as spon is not a word) Any instruction and help will be really helpful Thanks in dvance
Sarfarj Ahmed