Skip to content

pbeens/Programming-Word-Challenges

Repository files navigation

Programming Word Challenges

A place for programming teachers to find resources related to word challenges. In addition, a template has been created for Google Colab which can be used do do any of these challenges.

Table of Contents

Table of contents generated with markdown-toc

Colab Template

The Google Colab template for doing these challenges in Python can be found here.

Example Challenges

  1. What are the longest words in the list?
  2. If a=1, b=2, etc., what words add up to 100?
  3. What is the longest word that ends with "ar".
  4. What is the most common letter? Vowel? Consonant?
  5. How many palindromes are in the list?
  6. What's the longest word ladder list you can make. (A word ladder is a sequence of words where only one letter changes at a time. e.g., "hit" → "hot" → "dot")
  7. What's the longest list you can make where you start with a two letter word, and then by reusing those letters and adding one more you can come up with another word. e.g., "or" → "for" → "fort")

The following challenges have been submitted by Ross Jamieson:

  1. All Vowels - Find all sets of 5 words that have each of the vowels in the same position. Example sets: MATE, METE, MITE, MOTE MUTE; BAT, BET, BIT, BOT, BUT.
  2. Most Letters - Find the 26 words with the most of each of the letters of the alphabet. Breaking ties part 1: If two words have the same number of a letter, the "better” answer is the shorter word. BUBBLE is better than BUBBLING. Breaking ties part 2: If two words have the same number of a letter, and the same length, the word that doesn’t start with the letter is “better”. HUBBUB is better than BUBBLE.
  3. Murica - List all the words that can be spelled using only the 2-letter shortcodes for the 50 American states. (AL, AK, AZ, AR, CA, CO, CT, …) Example: VANDAL (Virginia, North Dakota, Alabama).
  4. Backwards - List all words for which the reversed word is also a word, but not a palindrome. Example: STRESSED
  5. Odd/Even - List all words for which the odd/even letters make another word. The “odd letters” are the 1st, 3rd, 5th, etc, and the “even letters” are the 2nd, 4th, 6th, …. Only words of 5+ letters (for odd) and 6+ letters (for even) should be considered, i.e. the resulting word must be 3+ letters. Examples: DERBY (which makes DRY), UNBUNDLED (which makes NUDE)
  6. Crossword Solver - Given a String parameter in the form “??E?R”, find all words that fit.Example: “?R?EFA??” → ARTEFACT, FREEFALL. Example: “??A?M” → ALARM, CHARM, CHASM, PSALM, SWARM…
  7. Minus One - Given a String parameter, list all words that can be made by removing a single letter, and keeping the remaining order intact. The parameter doesn’t have to be a “word” from the original list. Example: PLEASE → LEASE, PLEAS Example: COOP → COP, COO (note that cop should not be repeated) Example: APPLE → none
  8. Additional challenges from Ross can be found here (Word document).

Submitted by Doug Peterson:

  1. Word Chain - A well known word game involves changing one word into another word by successively substituting one letter at a time, by another letter, in such a way that the intermediate words still make sense. For example, to change the word ALONE into CRAZY could involve the following steps: ALONE → CLONE → CRONE → CRANE → CRAZE → CRAZY. Each of these intermediate words are acceptable English words. Sometimes you are forced to extend the chain to several more words, to ensure that each intermediate word be found in the dictionary. In this problem we will only consider 5-letter words, and for convenience, there is a “dictionary” of 5-letter words available here.

Other Text-Based Challenges

These text-based challenges do not rely on the importing of a text file:

  1. Blobs - A blob is an arrangement of at least 5 letters of the same kind that are connected... [Link]

Other Resources

  1. Here is Ross Jamieson's original Word Doc of challenges.
  2. Here is the notebook that was used to create the 5-letter words datafile that is needed for one challenge.

Text Files

  1. 5-Letter Words
  2. A "clean" dictionary with over 80,000 words in it. If you spot any inappropriate words in it, please open an issue above.
  3. Top 1000 words

Looking for Contributors

If you have any ideas for additional challenges, add an "Issue" above, email them directly to me at pbeens at gmail dot com, or share with me via twitter at @pbeens.

About

A place for programming teachers to find resources related to word challenges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published