Crucial Hints - The Spoiler Page

In the last page I presented your programming challenge and asked you to devise ways to do the Countdown Words Game.

What it all comes down to is this: given 9 random letters, find all 9, 8 and 7 letter words which use combinations of those 9 letters.

The Logic

Nine letter words are the easiest: hits will contain all 9 of the input letters.

Eight letter words get a little more difficult. There will be 9 searches, each one will in essence exclude one of the 9 letters.

Seven letter words are the most complex. There will be 36 searches, ie, the number of combinations of 7 from 9, leaving out two letters at a time.

So we're going to be doing a total of 46 searches.

The Challenge

The challenge is simple: how can you tell if 'dosarmn' equals 'randoms' in the words list?

The answer: you don't! You need to do something different.

What we have to do: