[PHP-DEV] Anagram Type Puzzle

2001-09-10 Thread Ralph Guzman

Im trying to figue out the following anagram using PHP. Here is the problem:

Using letters of the alphabet represented by a number, I have to come up
with words that add up to exactly 100.

Numbers are in reverse where A=26 and Z=1, so for example:

A = 26
B  = 25
C = 24
...
...
X = 3
Y = 2
Z = 1

So let's say the word 'acronym'

A + C+R+0+N+Y+M
26 + 24 + 9+12+13+2+14  = 100

My thoughts were to download a list of words in the dictionary, then read
the file and somehow replace each letter by its number, then add each letter
for each word and see which words would equal to 100.

So I am emailing this list for any suggestions or examples of code that I
can use to accomplish this. Any help?

Thanks much.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] DISREGARD: Anagram Type Puzzle

2001-09-10 Thread Ralph Guzman

Ooops! Sorry about that last email. Wrong list. Meant to send it to the
general list.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]