-
-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
anagram: split description into instructions and introduction (#2438)
* anagram: split description into instructions and introduction * Convert to delay * Update exercises/anagram/introduction.md * Update exercises/anagram/introduction.md * Update exercises/anagram/introduction.md
- Loading branch information
1 parent
fa20070
commit 34da1fa
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
exercises/anagram/description.md → exercises/anagram/instructions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Introduction | ||
|
||
At a garage sale, you find a lovely vintage typewriter at a bargain price! | ||
Excitedly, you rush home, insert a sheet of paper, and start typing away. | ||
However, your excitement wanes when you examine the output: all words are garbled! | ||
For example, it prints "stop" instead of "post" and "least" instead of "stale." | ||
Carefully, you try again, but now it prints "spot" and "slate." | ||
After some experimentation, you find there is a random delay before each letter is printed, which messes up the order. | ||
You now understand why they sold it for so little money! | ||
|
||
You realize this quirk allows you to generate anagrams, which are words formed by rearranging the letters of another word. | ||
Pleased with your finding, you spend the rest of the day generating hundreds of anagrams. |