-
-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anagram: split description into instructions and introduction #2438
Conversation
5a78aaf
to
3451bc5
Compare
exercises/anagram/introduction.md
Outdated
However, your excitement wanes when you examine the output: all words are garbled! | ||
For example, it prints "liar" instead of "rail" and "pots" instead of "stop." | ||
Carefully, you try again, but the result is the same. | ||
Apparently, all keys are wired incorrectly; for instance, the "r" key outputs an "l" and vice versa. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such faulty but fixed wiring would not effectively generate anagrams. It could only work for words that consist entirely of permutation cycles. Most output would not be anagrams of anything.
I reckon a variable delay would work better: you'd still get all the letters you type, just probably in a different order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I'll update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated. Could you check again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, this works 👍
No description provided.