WELL PLACED BALLS
There are W identical white balls, B identical black balls and C
containers. We need to distribute all the balls into some of the
containers. A selection is done by randomly picking a container followed by
randomly picking a ball in it. We need to maximise the probability of
picki
Here is the python code for the similar problem:
http://codercharts.com/puzzle/its-raining-anagrams
The first command line parameter is dictionary file, the second is the
file with checked words.
The idea is to preprocess the dictionary in few steps:
1. calc the set of lengths of the checked words.