Skip to content

Instantly share code, notes, and snippets.

@MattyAyOh
Last active April 5, 2017 20:26
Show Gist options
  • Save MattyAyOh/3ef78ac895a868dfd9bf1241ef361414 to your computer and use it in GitHub Desktop.
Save MattyAyOh/3ef78ac895a868dfd9bf1241ef361414 to your computer and use it in GitHub Desktop.
Autocorrect Program Description
Write a text autocorrect app
We provide small dictionary (100 words)
Project Specifications:
Write an application that takes a string, and has a button that tells you if the word is valid or not.
We will provide a dictionary, with valid words delimited by newlines.
If the word is not valid, display a suggested word and give the user an option to change their word to the suggested word.
Add a button that adds the current inputted word into the dictionary
Expected UI (Not sent to candidate):
- Text field, input for a word
- Button, to check if word is valid
- Label, to indicate validity
- Label, to indicate a suggested word
- Button, to take suggested word
- Button, to cancel
- Button, add to dictionary (don't add duplicate values)
On-site Extended Questions:
- Give a case and walk through
- Give edge case (e.g. a word far from all others. Delete all words that start with Q and give them a Q word)
- Give top 3 suggestions
- Remove from dictionary
- Add button to suggest an anagram
- Button to swap out underlying dictionary
- Big dictionary size (10000 words)
- If slow, see places we can speed it up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment