For this problem you'll need to import a dictionary. The program will take in a word such as "cat" and spit back out all the words that are within one letter of "cat". You should have words such as "cot", "cut", "can", and "rat". If there are no words within one letter than print out "no words found". Note the goal isn't to add or remove letters, only replace.
Comments:
Anonymous - 9 years, 11 months ago
c#
reply permalink
Eddy - 9 years, 11 months ago
My solution in C.
reply permalink
Anonymous - 9 years, 8 months ago
Output:
Enter a word to find words that are one letter off> hairy ['dairy', 'fairy', 'hairs', 'harry']
reply permalink