Across The Board Kata
You are given a grid that contains five words. To discover each word, take one square from each column from left to right. Each square is used only once to form a word.
Example:
| S | A | U | M | ER |
| L | U | F | SE | P |
| SH | Q | I | ST | L |
| SE | R | B | I | D |
| M | O | S | OO | D |
Output: [Seafood, Squid, Lobster, Shrimp, Mussel]
Dictionary
Carnegie Mellon has a phoneme dictionary (which may be overkill) http://www.speech.cs.cmu.edu/cgi-bin/cmudict
On a Mac, /usr/share/dict/words
Test cases (Training Set)
Input:
| A | P | R | O | N |
| N | A | P | K | IN |
| K | IT | CH | E | N |
| C | OO | K | I | NG |
| B | A | K | I | NG |
Output: [Apron,Napkin,Kitchen, Cooking, Baking]
Recent comments